-
Notifications
You must be signed in to change notification settings - Fork 0
/
Page1.qml
77 lines (64 loc) · 1.6 KB
/
Page1.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3
Page {
property alias textField1: textField1
property alias button1: button1
width: 800
height: 600
RowLayout {
anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 20
anchors.top: parent.top
TextField {
id: textField1
placeholderText: qsTr("Text Field")
}
Button {
id: button1
text: qsTr("Press Me")
}
}
SwipeView {
id: swipeView
x: 43
y: 149
width: 600
height: 200
currentIndex: tabBar.currentIndex
Item {
id: page1
property string name: String(page1.id)
}
Item {
id: page2
property string name: page2.id
}
Item {
id: page3
property string name: page3.id
}
}
// TabBar {
// id: tabBar
// anchors.right: swipeView.right
// anchors.left: swipeView.left
// anchors.bottom: swipeView.top
// Repeater: {
// model: swipeView.children.count()
// }
// }
TabBar {
id: tabBar
anchors.right: swipeView.right
anchors.left: swipeView.left
anchors.bottom: swipeView.top
Repeater {
model: swipeView.contentChildren
TabButton {
text: "modelData " + modelData + " index: " + index + " typeof: " + typeof(modelData) + " name: " + modelData.name
width: 400
}
}
}
}