summaryrefslogtreecommitdiffstats
path: root/examples/qml/app/xxxxxx-qml-app.qml
blob: 6333144ed44a670fc2b0621fe6c44ce15e5dc8a3 (plain)
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
import QtQuick 2.0
import QtQuick.Window 2.0
import QtQuick.Controls 1.4

Window {
	 // WINDOW PROPERTIES

	visible: true
	width: 320
	height: 240

	 // WIDGETS

	Rectangle {
		anchors.centerIn: parent

		Column {
			Label {
				text: "Hello World!"
				font.pixelSize: 28
				font.bold: true
				anchors.horizontalCenter: parent.horizontalCenter
			}
			Button {
				text: "Quit"
				onClicked: { Qt.quit() }
				anchors.horizontalCenter: parent.horizontalCenter
			}
			anchors.centerIn: parent
			spacing: 20
		}
	}

}