Javascriptimport QtQuick 2.4import QtQuick.Controls 1.3import QtQuick.Layouts 1.1import QtQuick.Controls.Styles 1.3 Item { width: 640 height: 480 property alias tabView1: tabView1 property alias tabViewStyle1: tabView1.tabViewStyle1 property alias rect1: tabView1.tabViewStyle1.rect1 // Invalid alias location property alias rect1: rect1 // Invalid alias reference. Unable to find id "rect1" TabView { id: tabView1 anchors.fill: parent tabPosition: 1 tabsVisible: true frameVisible: true Layout.minimumWidth: 100 Layout.fillWidth: true property TabViewStyle tabViewStyle1: tabViewStyle1 style: TabViewStyle { property Rectangle rect1: rect1 id: tabViewStyle1 frameOverlap: 1 tab: Rectangle { id: rect1 color: styleData.selected ? "steelblue" :"lightsteelblue" border.color: "steelblue" implicitWidth: Math.max(text.width + 4, 80) implicitHeight: 20 radius: 3 Text { id: text anchors.centerIn: parent text: styleData.title color: styleData.selected ? "white" : "black" } } frame: Rectangle { color: "steelblue" } tabsMovable: true } }}
Item { id: root width: 640 height: 480 property bool tabsMovable: true
tabsMovable: root.tabsMovable
Item {id: rootproperty QtObject styleComponent: null}
style: root.styleComponent
Item {Component {id: tableStyle1TabViewStyle { property Rectangle rect1: rect1 id: tabViewStyle1 frameOverlap: 1 tab: Rectangle { id: rect1 color: styleData.selected ? "steelblue" :"lightsteelblue" border.color: "steelblue" implicitWidth: Math.max(text.width + 4, 80) implicitHeight: 20 radius: 3 Text { id: text anchors.centerIn: parent text: styleData.title color: styleData.selected ? "white" : "black" } } frame: Rectangle { color: "steelblue" } tabsMovable: true }}StyledTable {styleComponent: tableStyle1}}