Code Review
/
apps
/
app-templates.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6333144ed44a670fc2b0621fe6c44ce15e5dc8a3
[apps/app-templates.git]
/
examples
/
qml
/
xxxxxx-qml-app.qml
1
import QtQuick 2.0
2
import QtQuick.Window 2.0
3
import QtQuick.Controls 1.4
4
5
Window {
6
// WINDOW PROPERTIES
7
8
visible: true
9
width: 320
10
height: 240
11
12
// WIDGETS
13
14
Rectangle {
15
anchors.centerIn: parent
16
17
Column {
18
Label {
19
text: "Hello World!"
20
font.pixelSize: 28
21
font.bold: true
22
anchors.horizontalCenter: parent.horizontalCenter
23
}
24
Button {
25
text: "Quit"
26
onClicked: { Qt.quit() }
27
anchors.horizontalCenter: parent.horizontalCenter
28
}
29
anchors.centerIn: parent
30
spacing: 20
31
}
32
}
33
34
}