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 | import QtQuick 2.4
import Ubuntu.Components 1.3
MainView {
width: units.gu(100)
height: units.gu(70)
Page {
id: sectionsPage
title: i18n.tr("Page with sections")
head {
sections {
model: [i18n.tr("one"), i18n.tr("two"), i18n.tr("three")]
selectedIndex: 2
}
}
Rectangle {
anchors {
fill: parent
margins: units.gu(2)
}
color: UbuntuColors.blue
}
}
}
|