From 98ce9a439748fb7138c3406ff532e98b84da003d Mon Sep 17 00:00:00 2001
From: PierrePouchet <pierre.pouchet@etu.ec-lyon.fr>
Date: Mon, 17 Mar 2025 12:01:18 +0100
Subject: [PATCH] interaction souris
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

j'ai pas réussi à faire lire la liste de mots
---
 Motus/Case.qml |  2 ++
 Motus/Main.qml | 14 ++++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/Motus/Case.qml b/Motus/Case.qml
index 6b53145..9508114 100644
--- a/Motus/Case.qml
+++ b/Motus/Case.qml
@@ -3,8 +3,10 @@ import QtQuick
 Item {
     width: 90
     height: 90
+    property alias _textColor: _text.color
     property alias _textText: _text.text
 
+
     Text {
         id: _text
         x: 0
diff --git a/Motus/Main.qml b/Motus/Main.qml
index 916ba9d..6f23c4d 100644
--- a/Motus/Main.qml
+++ b/Motus/Main.qml
@@ -34,6 +34,20 @@ Window {
             x: 76
             y: 47
             _textText: "Générer un mot"
+
+            MouseArea {
+                id: mouseArea
+                x: 0
+                y: 0
+                width: 400
+                height: 200
+                onClicked: case3._textColor="#51c3e1"
+
+                Case {
+                    id: case3
+                    _textText: "test"
+                }
+            }
         }
 
         Keys.onPressed: (event) => {
-- 
GitLab