the remaining .qml file:
Rectangle {
id: rectangle4
x: 236
y: 111
width: 80
height: 30
color: "#00ffef"
TextEdit {
id: text_edit4
x: 0
y: 0
width: 80
height: 30
color: "#ffffff"
text: "0"
horizontalAlignment: TextEdit.AlignHCenter
font.pixelSize: 25
}
}
Rectangle {
id: rectangle5
x: 48
y: 234
width: 25
height: 25
color: "#ffffff"
Text {
id: text1
text: qsTr("+")
font.bold: true
horizontalAlignment: Text.AlignHCenter
anchors.fill: parent
font.pixelSize: 20
}
MouseArea {
id: mouse_area5
anchors.fill: parent
}
}
Rectangle {
id: rectangle6
x: 103
y: 234
width: 25
height: 25
color: "#ffffff"
Text {
id: text2
text: qsTr("-")
horizontalAlignment: Text.AlignHCenter
anchors.fill: parent
font.bold: true
font.pixelSize: 20
}
MouseArea {
id: mouse_area6
anchors.fill: parent
}
}
Rectangle {
id: rectangle7
x: 236
y: 234
width: 25
height: 25
color: "#ffffff"
Text {
id: text3
text: qsTr("+")
anchors.fill: parent
horizontalAlignment: Text.AlignHCenter
font.bold: true
font.pixelSize: 20
}
MouseArea {
id: mouse_area7
anchors.fill: parent
}
}
Rectangle {
id: rectangle8
x: 291
y: 234
width: 25
height: 25
color: "#ffffff"
Text {
id: text4
text: qsTr("-")
anchors.fill: parent
font.bold: true
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 20
}
MouseArea {
id: mouse_area8
anchors.fill: parent
}
}
Rectangle {
id: rectangle9
color: "#8f0000"
anchors.top: parent.top
anchors.topMargin: 555
anchors.right: parent.right
anchors.rightMargin: 100
anchors.left: parent.left
anchors.leftMargin: 100
anchors.bottom: parent.bottom
anchors.bottomMargin: 40
Text {
id: text5
color: "#0000ff"
text: qsTr("EXIT")
font.bold: true
horizontalAlignment: Text.AlignHCenter
anchors.fill: parent
font.pixelSize: 34
}
MouseArea {
id: mouse_area9
anchors.fill: parent
onClicked: { Qt.quit(); }
}
}
}
}
↧