-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.qml
More file actions
48 lines (42 loc) · 970 Bytes
/
main.qml
File metadata and controls
48 lines (42 loc) · 970 Bytes
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
import QtQuick.Controls 2
Item {
width: 400
height: 300
Column {
anchors.fill: parent
spacing: 10
Rectangle {
width: parent.width
height: 50
color: "lightblue"
Text {
anchors.centerIn: parent
text: "Welcome!"
font.pixelSize: 20
}
}
Button {
text: "Click Me"
onClicked: {
console.log("Button clicked!")
}
}
CheckBox {
text: "Check me"
checked: true
onCheckedChanged: {
console.log("Checkbox checked:", checked)
}
}
Slider {
width: parent.width
from: 0
to: 100
value: 50
onValueChanged: {
console.log("Slider value changed:", value)
}
}
}
}