import Qt 4.6 TabWidget { id: tabs width: 640; height: 480 Rectangle { property string title: "Red" anchors.fill: parent; color: "#e3e3e3" Rectangle { anchors { fill: parent; topMargin: 20; leftMargin: 20; rightMargin: 20; bottomMargin: 20 } color: "#ff7f7f" Text { anchors.centerIn: parent; horizontalAlignment: Qt.AlignHCenter text: "Roses are red"; font.pixelSize: 20 wrap: true; width: parent.width - 20 } } } Rectangle { property string title: "Green" anchors.fill: parent; color: "#e3e3e3" Rectangle { anchors { fill: parent; topMargin: 20; leftMargin: 20; rightMargin: 20; bottomMargin: 20 } color: "#7fff7f" Text { anchors.centerIn: parent; horizontalAlignment: Qt.AlignHCenter text: "Flower stems are green"; font.pixelSize: 20 wrap: true; width: parent.width - 20 } } } Rectangle { property string title: "Blue" anchors.fill: parent; color: "#e3e3e3" Rectangle { anchors { fill: parent; topMargin: 20; leftMargin: 20; rightMargin: 20; bottomMargin: 20 } color: "#7f7fff" Text { anchors.centerIn: parent; horizontalAlignment: Qt.AlignHCenter text: "Violets are blue"; font.pixelSize: 20 wrap: true; width: parent.width - 20 } } } }