Skip to content

AppBarButton

CommandBar icon button with label position overrides.

import QWinUI3.Extras · src/extras/QWinUI3/Extras/AppBarButton.qml

Category: Buttons & commands · Library: v3.56

← Component index

Gallery: AppBarButton — src/gallery/pages/AppBarButtonPage.qml

Python: same QML type after qwinui3.setup_engine() — Python API.

Extends IconicButton.

Example

AppBarButton {
    text: qsTr("Add")
    symbol: FluentIcons.Add
    loading: true
}

Notes

CommandBar icon+label button; symbol / labelPosition for layout. loading swaps glyph → ProgressRing 16px (3.12 — I5).

API

Properties

Name Type Description
labelPosition string Override CommandBar label position when set (bottom | right | collapsed)
barLabelPosition string Injected by CommandBar (do not parent-walk)
barCompact bool Injected by CommandBar.compact — denser icon-only sizing
isCompact bool WinUI IsCompact — hide label, icon-only
keyboardAcceleratorText string Shortcut hint shown under/beside the label (WinUI KeyboardAcceleratorText)
effectiveLabelPosition string Resolved label position

Signals

No custom signals (use inherited signals from the base type).

Methods

No custom methods (use inherited methods from the base type).


Generated from module sources by scripts/generate_component_docs.py — do not edit by hand.