Skip to content

UniDeskTabButton Type

Tab button control based on QtQuick TabButton. Custom selected state (theme-color background), hover/press states, and disabled state color management.

ItemDescription
Control TypeVisual Control
Source FileUniDesk/Controls/UniDeskTabButton.qml
InheritsQtQuick TabButton
QML Importimport UniDesk.Controls 1.0

Custom Properties

  • property bool disabled:Whether the button is disabled
  • property color bgNormalColor:Normal background. Default: transparent
  • property color bgHoverColor:Hover background
  • property color bgPressColor:Press background
  • property color bgDisableColor:Disabled background

Custom Styling

  • 3px rounded rectangle background
  • Shows theme-color background when selected
  • Text uses UniDeskTextStyle.little font
  • Border adapts to theme

Examples

qml
import UniDesk.Controls 1.0

UniDeskTabButton {
    text: "General"
    checked: true
}

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