Skip to content

UniDeskTabBar Type

Tab bar control based on QtQuick TabBar. Transparent background, designed to work with UniDeskTabButton.

ItemDescription
Control TypeVisual Control
Source FileUniDesk/Controls/UniDeskTabBar.qml
InheritsQtQuick TabBar
QML Importimport UniDesk.Controls 1.0

Custom Styling

  • Transparent background
  • 2px padding

Examples

qml
import UniDesk.Controls 1.0

TabView {
    TabBar {
        Repeater {
            model: 3
            delegate: UniDeskTabButton {
                text: "Tab " + (index + 1)
            }
        }
    }
    contentItem: StackLayout {
        Repeater {
            model: 3
            delegate: Rectangle {
                color: index % 2 ? "#eee" : "#ddd"
            }
        }
    }
}

Released under the CC BY-SA 4.0 open documentation license.