TabButton QML Type

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

Import Statement: import QtQuick.Controls 2.2
开始支持版本: 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 using the AbstractButton API.

参见 TabBar, Customizing TabButton, Button Controls, and Navigation Controls.