-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwidget.qml
More file actions
48 lines (42 loc) · 1.11 KB
/
widget.qml
File metadata and controls
48 lines (42 loc) · 1.11 KB
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
import QtQuick 2.15
import QtQuick.Controls 2.15
import Com.Levy.Rnpp 1.0
Rectangle {
id: root
width: 200
height: 120
color: "#2b2b2b"
radius: 12
border.color: "#3d3d3d"
border.width: 1
Column {
anchors.centerIn: parent
spacing: 12
Label {
id: nameLabel
text: "准备"
color: "#ffffff"
font.pixelSize: 24
font.bold: true
anchors.horizontalCenter: parent.horizontalCenter
}
Button {
text: "点名"
anchors.horizontalCenter: parent.horizontalCenter
background: Rectangle {
color: parent.down ? "#505050" : "#3d3d3d"
radius: 6
}
contentItem: Text {
text: parent.text
color: "white"
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
onClicked: {
// Call the Python backend
nameLabel.text = NamePicker.pick()
}
}
}
}