Warning, /maui/mauikit/examples/TabView.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 0002 import QtQuick.Controls 0003 import org.mauikit.controls as Maui 0004 0005 Maui.ApplicationWindow 0006 { 0007 id: root 0008 0009 Maui.TabView 0010 { 0011 id: _tabBar 0012 anchors.fill: parent 0013 Maui.Controls.showCSD: true 0014 0015 onNewTabClicked: 0016 { 0017 _tabBar.addTab(_newTabComponent, ({'Maui.TabViewInfo.tabTitle': "New Tab"})) 0018 } 0019 0020 Rectangle 0021 { 0022 Maui.TabViewInfo.tabTitle: "Tab1" 0023 Maui.TabViewInfo.tabIcon: "folder" 0024 color: "blue" 0025 } 0026 0027 Rectangle 0028 { 0029 Maui.TabViewInfo.tabTitle: "Tab2" 0030 Maui.TabViewInfo.tabIcon: "folder" 0031 color: "pink" 0032 } 0033 0034 Rectangle 0035 { 0036 Maui.TabViewInfo.tabTitle: "Tab3" 0037 Maui.TabViewInfo.tabIcon: "folder" 0038 color: "yellow" 0039 } 0040 } 0041 0042 Component 0043 { 0044 id: _newTabComponent 0045 Rectangle 0046 { 0047 color: "purple" 0048 } 0049 } 0050 }