summaryrefslogtreecommitdiffstats
path: root/examples/declarative/tabwidget/tabs.qml
blob: 54ed7df770aaecd78331021362dca3f406888a5c (plain)
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
import Qt 4.6

TabWidget {
    id: tabs
    width: 200
    height: 200
    current: 2
    Rectangle {
        property string title: "Red"
        color: "red"
        anchors.fill: parent
        Text { anchors.centerIn: parent; text: "<div align=center>Roses are red"; font.pixelSize: 24
            wrap: true; width: parent.width-20 }
    }
    Rectangle {
        property string title: "Green"
        color: "green"
        anchors.fill: parent
        Text { anchors.centerIn: parent; text: "<div align=center>Flower stems are green"; font.pixelSize: 24;
            wrap: true; width: parent.width-20 }
    }
    Rectangle {
        property string title: "Blue"
        color: "blue"
        anchors.fill: parent
        Text { anchors.centerIn: parent; text: "<div align=center>Violets are blue"; color: "white"; font.pixelSize: 24
            wrap: true; width: parent.width-20 }
    }
}