diff --git a/Motus/CMakeLists.txt b/Motus/CMakeLists.txt index 476030bdbd0da5528c84cf798925d7fbe964bafd..ee8b9c0e624cbb50a68e29ede0d3687657b6441f 100644 --- a/Motus/CMakeLists.txt +++ b/Motus/CMakeLists.txt @@ -34,6 +34,9 @@ qt_add_qml_module(appMotus RESOURCES back_key.png RESOURCES RESOURCES + RESOURCES + RESOURCES words_alpha.txt + RESOURCES words_alpha.txt RESOURCES words_alpha.txt RESOURCES words_alpha.txt RESOURCES words_alpha.txt diff --git a/Motus/wordchooser.cpp b/Motus/wordchooser.cpp index 52e1ccc6ea7dac4c66b51a91cacf7c70f0f4c0b3..fd4b79b5bac0e0b1eeed51100052141c00182015 100644 --- a/Motus/wordchooser.cpp +++ b/Motus/wordchooser.cpp @@ -12,7 +12,7 @@ WordChooser::WordChooser(QObject *parent) : QObject(parent) { } void WordChooser::loadWords() { - QFile file("C:\\Users\\pierr\\OneDrive\\Documents\\GitHub\\momomotus\\momomotus\\Motus\\words_alpha.txt"); // ✅ fonctionne avec le .qrc + QFile file("Motus\\words_alpha.txt"); // ✅ fonctionne avec le .qrc if (file.open(QIODevice::ReadOnly | QIODevice::Text)) { QTextStream in(&file); while (!in.atEnd()) {