From 212772de1ab079892ca1e604b22320f82299ba87 Mon Sep 17 00:00:00 2001 From: ppouchet <pierre.pouchet@etu.ec-lyon.fr> Date: Mon, 24 Mar 2025 12:03:31 +0100 Subject: [PATCH] Changement dispositions ressources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Maintenant ça marche pour l'image en chemin relatif, mais toujours absolu pour la liste de mots --- Motus/CMakeLists.txt | 12 ++++++++++-- Motus/Main.qml | 10 ++++++++++ Motus/Ressources.qrc | 12 +----------- 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/Motus/CMakeLists.txt b/Motus/CMakeLists.txt index 5a9421c..476030b 100644 --- a/Motus/CMakeLists.txt +++ b/Motus/CMakeLists.txt @@ -17,7 +17,7 @@ qt_add_qml_module(appMotus VERSION 1.0 QML_FILES - Main.qml + Case.qml Key.qml BackKey.qml @@ -29,7 +29,15 @@ qt_add_qml_module(appMotus wordchooser.cpp RESOURCES - Ressources.qrc + + QML_FILES Main.qml + RESOURCES back_key.png + RESOURCES + RESOURCES + RESOURCES words_alpha.txt + RESOURCES words_alpha.txt + RESOURCES words_alpha.txt + RESOURCES words_alpha.txt ) # Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1. diff --git a/Motus/Main.qml b/Motus/Main.qml index 3f87d1e..bfa85f0 100644 --- a/Motus/Main.qml +++ b/Motus/Main.qml @@ -414,6 +414,16 @@ Window { event.accepted = true; } } + } + + Image { + id: image + x: 1074 + y: 122 + width: 346 + height: 327 + source: "back_key.png" + fillMode: Image.PreserveAspectFit } } } diff --git a/Motus/Ressources.qrc b/Motus/Ressources.qrc index 10ea4bd..7646d2b 100644 --- a/Motus/Ressources.qrc +++ b/Motus/Ressources.qrc @@ -1,11 +1 @@ -<RCC> - <qresource prefix="/"> - <file>BackKey.qml</file> - <file>Bouton.qml</file> - <file>Case.qml</file> - <file>Key.qml</file> - <file>words_alpha.txt</file> - <file>back_key.png</file> - <file>Choosebutton.qml</file> - </qresource> -</RCC> +<RCC/> -- GitLab