-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScoreBoard.ui.qml
50 lines (43 loc) · 1.17 KB
/
ScoreBoard.ui.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import QtQuick 2.4
Item {
id: root
width: 400
height: 40
property int score: 0
Rectangle {
id: rootBak
color: "#ebbb6f"
anchors.fill: parent
Row {
id: rowLayout
layoutDirection: Qt.LeftToRight
anchors.fill: parent
spacing: 20
Text {
id: text1
color: "#675146"
text: qsTr("Score: ")
font.family: "Arial"
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
font.pixelSize: 40
}
Text {
id: scoreText
color: "#86746c"
text: score;
anchors.left: text1.right
anchors.leftMargin: -126
anchors.right: parent.right
anchors.rightMargin: 400
font.family: "Times New Roman"
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignRight
font.pixelSize: 30
}
}
}
onScoreChanged: {
scoreText.text = score
}
}