-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.qml
48 lines (39 loc) · 1.12 KB
/
main.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
import QtQuick 2.4
import QtQuick.Window 2.2
Window {
visible: true
width: 640
height: 900
flags: Qt.WindowTitleHint | Qt.WindowMaximizeButtonHint | (Qt.platform.os === "ios" ? Qt.MaximizeUsingFullscreenGeometryHint : 0)
Timer {
onTriggered: body.showPage(body.pages[0], 0)
interval: 100
running: true
}
Rectangle {
anchors.fill: parent
color: "#ddd"
PageManager {
id: body
anchors.fill: parent
// initialComponents: [ pages[0] ]
property var pages: ["ListPage", "MapPage", "clocks"]
}
Rectangle {
id: toolBar
height: 44
color: "#cceeeeee"
anchors {
left: parent.left
right: parent.right
bottom: parent.bottom
}
SegmentedButton {
buttons: ["List", "Map", "Clocks"]
anchors.centerIn: parent
width: 300
onActiveButtonChanged: body.showPage(body.pages[activeButton], activeButton)
}
}
}
}