|
Fluid 1.3.0
Material Design for QtQuick and Qml
|
A Material 3 tab using the native Qt tab selection contract. More...
A Material 3 tab using the native Qt tab selection contract.
Place buttons directly inside TabBar. Qt's attached TabBar.tabBar relationship supplies the owner and effectiveVariant; a standalone button uses Primary. Selection, Action, clicked, checked, enabled, and dynamic-item behavior remain Qt Quick Templates APIs. TabBar describes layout, navigation, and connecting tabs to StackLayout or SwipeView content.
Long labels are elided on one line by default. Prefer a scrollable bar for longer labels, or set maximumLineCount to 2 to wrap onto two lines before elision. Labels default to the titleSmall type scale; typescale and explicit font overrides customize typography. Natural height grows with font metrics and multiline content. Padding, background size, and insets contribute to implicit size while preserving the minimum interaction target.
Inline badges contribute to a primary indicator's content width. Stacked and icon-only badges overlap the icon without changing that width. Natural size reserves badge paint bounds so overlays remain visible; fixed bars retain equal widths and can scroll when those bounds need more space.
badgeAccessibleDescription supplies a localized full description, included in the default accessible name while the badge is shown. If an application overrides Accessible.name, it must include meaningful badge information itself. Hidden or cleared badges contribute no stale description. Counts above 999 display a localized 999+; status strings longer than four grapheme clusters display their first three clusters followed by an ellipsis.
Applications own notification state and should update or clear it after the related content has been viewed. Badge never clears caller state.
Definition at line 97 of file TabButton.qml.