diff --git a/Carre.qml b/Carre.qml index 6c0697d7008b4abcc7f69a7d6703641cdd7d4c3c..2891f52a7d96f4fe3fe44d2ceeb368b831d1d638 100644 --- a/Carre.qml +++ b/Carre.qml @@ -63,8 +63,11 @@ Item { Grid{ id : grid - x: 3; y:3 - rows:3; columns:3; spacing :2 + x : 3 + y : 3 + rows : 3 + columns : 3 + spacing : 2 Repeater{ id : repeater1 @@ -78,19 +81,17 @@ Item { border.color : "#000000" TextInput{ - id:input - color:'#333333' + id : input + readOnly : false width : parent.width - height:parent.height - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - readOnly: false - font.pointSize: 24 - maximumLength: 1 - validator: RegExpValidator { regExp: /[1-9]+/ } - onFocusChanged: { - changer_couleur(this, focus) - } + height : parent.height + horizontalAlignment : Text.AlignHCenter + verticalAlignment : Text.AlignVCenter + font.pointSize : 24 + maximumLength : 1 + color :'#333333' + validator : RegExpValidator { regExp: /[1-9]+/ } + onFocusChanged : {changer_couleur(this, focus)} onTextEdited : envoyer_valeur(this) } } diff --git a/Resultat.qml b/Resultat.qml index 89410ec10ce0a5b9250d6fb8f8192ad025090e77..94b6c1c81ded84678077703e7afef025a434ad8a 100644 --- a/Resultat.qml +++ b/Resultat.qml @@ -4,9 +4,9 @@ import QtQuick.Layouts 1.1 import QtQuick.Controls 2.15 Window { + visible: true width: 700 height: 200 - visible: true title: qsTr("Résultat") property alias rectangle : rectangle @@ -19,12 +19,12 @@ Window { Text { id: text1 text: "Text" - anchors.fill: parent font.pixelSize: 30 + font.family: "Tahoma" + anchors.fill: parent horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter - font.pointSize: 16 - font.family: "Tahoma" + } } } diff --git a/main.qml b/main.qml index b55798d3b2b194afb53aadde5576538df4948ea5..4c810ca0652214e0213abb1101ddbd04818a4503 100644 --- a/main.qml +++ b/main.qml @@ -5,11 +5,11 @@ import QtQuick.Controls 2.15 Window { id : root - color: "#e6ecfa" width: 655 height: 717 visible: true title: qsTr("Sudoku") + color: "#e6ecfa" function check(){ vueObjetCpt.verif_matrice();