TabButton QML Type

Button with a look suitable for a TabBar . 更多...

导入语句: import QtQuick.Controls 2.5
Since: Qt 5.7
继承:

AbstractButton

详细描述

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 使用 AbstractButton API.

另请参阅 TabBar , Customizing TabButton , 按钮控件 ,和 导航控件 .