qmlfrontend/main.qml
branchui-scaling
changeset 15288 c4fd2813b127
parent 14148 745c73e0e644
equal deleted inserted replaced
13395:0135e64c6c66 15288:c4fd2813b127
     9   title: qsTr("Hello World")
     9   title: qsTr("Hello World")
    10 
    10 
    11   SwipeView {
    11   SwipeView {
    12     id: swipeView
    12     id: swipeView
    13     anchors.fill: parent
    13     anchors.fill: parent
    14     currentIndex: tabBar.currentIndex
       
    15 
    14 
    16     Page1 {
    15     Page1 {
    17     }
    16     }
    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   }
    17   }
    37 }
    18 }