TabWidget QML Type

A widget that places its children as tabs More...

Import Statement: import UIComponents 1.0



Detailed Description

A TabWidget places its children as tabs in a view. Selecting a tab involves selecting the tab at the top.

The TabWidget component is part of the UI Components module.

This documentation is part of the UIComponents example.

Adding Tabs

To add a tab, declare the tab as a child of the TabWidget.

TabWidget {
    id: tabwidget

    Rectangle {
        id: tab1
        color: "red"
        //... omitted
    Rectangle {
        id: tab2
        color: "blue"
        //... omitted


Property Documentation

current : int

The currently active tab in the TabWidget.

[read-only] sampleReadOnlyProperty : int

A sample read-only property. A contrived property to demonstrate QDoc's ability to detect read-only properties.

The signature is:

readonly property int sampleReadOnlyProperty: 0

Note that the property must be initialized to a value.

© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.