equal
deleted
inserted
replaced
|
1 import QtQuick 2.7 |
|
2 import QtQuick.Controls 2.0 |
|
3 import QtQuick.Layouts 1.3 |
|
4 |
|
5 ApplicationWindow { |
|
6 visible: true |
|
7 width: 640 |
|
8 height: 480 |
|
9 title: qsTr("Hello World") |
|
10 |
|
11 SwipeView { |
|
12 id: swipeView |
|
13 anchors.fill: parent |
|
14 currentIndex: tabBar.currentIndex |
|
15 |
|
16 Page1 { |
|
17 } |
|
18 |
|
19 Page { |
|
20 Label { |
|
21 text: qsTr("Second page") |
|
22 anchors.centerIn: parent |
|
23 } |
|
24 } |
|
25 } |
|
26 |
|
27 footer: TabBar { |
|
28 id: tabBar |
|
29 currentIndex: swipeView.currentIndex |
|
30 TabButton { |
|
31 text: qsTr("First") |
|
32 } |
|
33 TabButton { |
|
34 text: qsTr("Second") |
|
35 } |
|
36 } |
|
37 } |