-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tab.qml
53 lines (46 loc) · 1.25 KB
/
Tab.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
49
50
51
52
53
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Item {
id: item1
signal tabClicked
TabBar { // Switch between different windows
id: tabBar
y: 0
width: 446
height: 50
anchors.horizontalCenter: parent.horizontalCenter
TabButton {
id: mainPage1
width: 150
height: 50
text: qsTr("Page 1")
anchors.top: parent.top
anchors.topMargin: 0
onClicked: pageLoader.source = "MainPage1.qml"
}
TabButton {
id: mainPage2
width: 150
height: 52
text: qsTr("Page 2")
anchors.left: tabButton.right
anchors.top: parent.top
anchors.leftMargin: 0
anchors.topMargin: -2
onClicked: pageLoader.source = "MainPage2.qml"
}
TabButton {
id: mainPage3
width: 150
height: 52
// Telemetry window??
text: qsTr("Page 3")
anchors.left: tabButton1.right
anchors.top: parent.top
anchors.leftMargin: 0
anchors.topMargin: -2
onClicked: pageLoader.source = "MainPage3.qml"
}
}
}