diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-23 01:38:16 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-23 01:38:16 (GMT) |
commit | 4621721a9c3705dc9fbc3b6f15e6122f913e5c72 (patch) | |
tree | bba2e8030ddd2586f5a634496736c6b4c221ca6c /examples/declarative/tabwidget/tabs.qml | |
parent | 60e39093e9bd76b88027863d60873bc82492be50 (diff) | |
download | Qt-4621721a9c3705dc9fbc3b6f15e6122f913e5c72.zip Qt-4621721a9c3705dc9fbc3b6f15e6122f913e5c72.tar.gz Qt-4621721a9c3705dc9fbc3b6f15e6122f913e5c72.tar.bz2 |
Demonstrate "container" type objects.
Diffstat (limited to 'examples/declarative/tabwidget/tabs.qml')
-rw-r--r-- | examples/declarative/tabwidget/tabs.qml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/declarative/tabwidget/tabs.qml b/examples/declarative/tabwidget/tabs.qml new file mode 100644 index 0000000..54ed7df --- /dev/null +++ b/examples/declarative/tabwidget/tabs.qml @@ -0,0 +1,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 } + } +} |