Skip to content
Snippets Groups Projects
Commit fe4f06ab authored by Jolibois Simon's avatar Jolibois Simon
Browse files

Delete main.qml

parent 465b8bf8
Branches
No related tags found
No related merge requests found
import QtQuick 2.12
import QtQuick.Window 2.12
Window {
width: 900
height: 700
visible: true
title: qsTr("Sudoku")
Rectangle {
id: rectangle
color: "#eae1c3"
anchors.fill: parent
focus: true
Keys.onPressed: {
switch (event.key) {
case Qt.Key_A:
grille.carre4.case2.chiffreText=qsTr("0")
break;
}
}
Grille {
id: grille
x: 217
y: 103
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
id: textdyn
x: 431
text: qsTr("Ici un texte pour les instructions et etc (Type : Bravo)")
anchors.top: parent.top
font.pixelSize: 30
font.weight: Font.DemiBold
font.family: "Tahoma"
anchors.topMargin: 30
anchors.horizontalCenter: parent.horizontalCenter
}
Case {
id: bouton6
x: 425
y: 620
anchors.bottom: parent.bottom
chiffreText: "6"
anchors.horizontalCenterOffset: 30
anchors.bottomMargin: 30
anchors.horizontalCenter: parent.horizontalCenter
}
Case {
id: bouton5
x: 392
y: 620
anchors.bottom: parent.bottom
chiffreText: "5"
anchors.horizontalCenterOffset: -30
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: 30
}
Case {
id: bouton4
x: 331
y: 620
anchors.bottom: parent.bottom
chiffreText: "4"
anchors.horizontalCenterOffset: -90
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: 30
}
Case {
id: bouton3
x: 266
y: 620
anchors.bottom: parent.bottom
chiffreText: "3"
anchors.horizontalCenterOffset: -150
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: 30
}
Case {
id: bouton2
x: 201
y: 620
anchors.bottom: parent.bottom
chiffreText: "2"
anchors.horizontalCenterOffset: -210
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: 30
}
Case {
id: bouton1
x: 98
y: 627
anchors.bottom: parent.bottom
chiffreText: "1"
anchors.horizontalCenterOffset: -270
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: 30
}
Case {
id: bouton7
x: 545
y: 627
anchors.bottom: parent.bottom
chiffreText: "7"
anchors.horizontalCenterOffset: 90
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: 30
}
Case {
id: bouton8
x: 621
y: 627
anchors.bottom: parent.bottom
chiffreText: "8"
anchors.horizontalCenterOffset: 150
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: 30
}
Case {
id: bouton9
x: 699
y: 620
anchors.bottom: parent.bottom
anchors.horizontalCenterOffset: 210
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: 30
}
Case {
id: bouton10
x: 781
y: 620
anchors.bottom: parent.bottom
chiffreText: " "
anchors.horizontalCenterOffset: 270
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: 30
Image {
id: gomme
anchors.fill: parent
source: "erase.png"
anchors.rightMargin: 2
anchors.leftMargin: 2
anchors.bottomMargin: 2
anchors.topMargin: 2
fillMode: Image.PreserveAspectFit
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment