Skip to content
Snippets Groups Projects
Commit ed509626 authored by Pouchet Pierre's avatar Pouchet Pierre
Browse files

C'est bon ça marche avec chemin relatif pour words_alpha

parent 212772de
Branches
No related tags found
No related merge requests found
...@@ -34,6 +34,9 @@ qt_add_qml_module(appMotus ...@@ -34,6 +34,9 @@ qt_add_qml_module(appMotus
RESOURCES back_key.png RESOURCES back_key.png
RESOURCES RESOURCES
RESOURCES RESOURCES
RESOURCES
RESOURCES words_alpha.txt
RESOURCES words_alpha.txt
RESOURCES words_alpha.txt RESOURCES words_alpha.txt
RESOURCES words_alpha.txt RESOURCES words_alpha.txt
RESOURCES words_alpha.txt RESOURCES words_alpha.txt
......
...@@ -12,7 +12,7 @@ WordChooser::WordChooser(QObject *parent) : QObject(parent) { ...@@ -12,7 +12,7 @@ WordChooser::WordChooser(QObject *parent) : QObject(parent) {
} }
void WordChooser::loadWords() { 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)) { if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
QTextStream in(&file); QTextStream in(&file);
while (!in.atEnd()) { while (!in.atEnd()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment