diff --git a/Motus/Main.qml b/Motus/Main.qml index 4e36fee1caab1d45bbccc5bc6731cb529c9e6180..e966dfd4a374f28ab1e9eb65b28fe8c6e5ecb81a 100644 --- a/Motus/Main.qml +++ b/Motus/Main.qml @@ -150,6 +150,8 @@ Window { // Exemple : affichage d'un mot généré dans un Case enfant Case { id: case3 + x: 373 + y: 103 _textText: "mot test" } MouseArea { diff --git a/Motus/motusgame.h b/Motus/motusgame.h index 96d23994ebce21f2997571c1e54d6166e8b592b5..ee58aed6b8665ac89536c36cc556840b87008964 100644 --- a/Motus/motusgame.h +++ b/Motus/motusgame.h @@ -38,7 +38,9 @@ public: void setLetterNumber(int value); bool getRandomizeLetterNumber() const; void setRandomizeLetterNumber(bool value); - bool existWord(const QString &word); + + + Q_INVOKABLE bool existWord(const QString &word);