TabButton QML Type

Button with a look suitable for a TabBar. More...

Import Statement: import QtQuick.Controls 2.5
Since: Qt 5.7
Inherits:

AbstractButton

Detailed Description

TabButton is used in conjunction with a TabBar.

TabBar {
    TabButton {
        text: qsTr("Home")
    }
    TabButton {
        text: qsTr("Discover")
    }
    TabButton {
        text: qsTr("Activity")
    }
}

TabButton inherits its API from AbstractButton. For instance, you can set text, and react to clicks using the AbstractButton API.

See also TabBar, Customizing TabButton, Button Controls, and Navigation Controls.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.12/qml-qtquick-controls2-tabbutton.html