diff --git a/Motus/BackKey.qml b/Motus/BackKey.qml index 3ee275997a9455d987c2170267975535103e138e..e865df2fb4f256881138421bad65db23dbb85069 100644 --- a/Motus/BackKey.qml +++ b/Motus/BackKey.qml @@ -10,15 +10,15 @@ Item { color: "#7a7a7a" radius: 15 anchors.fill: parent - } - Image { - id: image - width: 100 - height: 30 - anchors.verticalCenter: parent.verticalCenter - source: "qrc:/back_key.png" - anchors.horizontalCenter: parent.horizontalCenter - fillMode: Image.PreserveAspectFit + Image { + id: image + x: 0 + y: 0 + width: 150 + height: 70 + source: "file:///C:/Users/pierr/OneDrive/Documents/GitHub/momomotus/momomotus/Motus/back_key.png" + fillMode: Image.PreserveAspectFit + } } } diff --git a/Motus/Main.qml b/Motus/Main.qml index 5849c592972a07d7d8a976354928cde438671ed8..3f87d1e2018ec4f56f100886c5300ae71ffcc4eb 100644 --- a/Motus/Main.qml +++ b/Motus/Main.qml @@ -79,24 +79,18 @@ Window { - Image { - id: testImage - source: "qrc:/back_key.png" - width: 100 - height: 100 - anchors.left: parent.left - anchors.top: parent.top - } + Rectangle { id: rectangle1 - y: 666 + y: 465 width: 640 height: 280 color: "#323232" radius: 10 border.color: "#ffffff" border.width: 5 + anchors.horizontalCenterOffset: 38 anchors.horizontalCenter: parent.horizontalCenter Column { @@ -405,7 +399,7 @@ Window { width: 100 height: 60 anchors.verticalCenter: parent.verticalCenter - imageSource: "qrc:/back_key.png" + } } } diff --git a/Motus/main.cpp b/Motus/main.cpp index a365692372389857885c870309a57096ac2467c4..200e2c835f723cf4f9bef26a8648cada4f37a576 100644 --- a/Motus/main.cpp +++ b/Motus/main.cpp @@ -2,9 +2,12 @@ #include <QQmlApplicationEngine> #include <QQmlContext> #include "WordChooser.h" +#include <Qfile> + int main(int argc, char *argv[]) { + QFile file(":/words_alpha.txt"); QGuiApplication app(argc, argv); QQmlApplicationEngine engine; diff --git a/Motus/wordchooser.cpp b/Motus/wordchooser.cpp index a0aedbdf3e840fa7767f8ed8ca35b31f130dca53..52e1ccc6ea7dac4c66b51a91cacf7c70f0f4c0b3 100644 --- a/Motus/wordchooser.cpp +++ b/Motus/wordchooser.cpp @@ -12,7 +12,7 @@ WordChooser::WordChooser(QObject *parent) : QObject(parent) { } void WordChooser::loadWords() { - QFile file(":/words_alpha.txt"); // ✅ fonctionne avec le .qrc + QFile file("C:\\Users\\pierr\\OneDrive\\Documents\\GitHub\\momomotus\\momomotus\\Motus\\words_alpha.txt"); // ✅ fonctionne avec le .qrc if (file.open(QIODevice::ReadOnly | QIODevice::Text)) { QTextStream in(&file); while (!in.atEnd()) { diff --git a/test.docx b/test.docx deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000