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

Changement chemins vers chemins absolus (temporaire)

parent b32681d8
No related branches found
No related tags found
No related merge requests found
......@@ -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
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
}
}
}
......@@ -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"
}
}
}
......
......@@ -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;
......
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment