AccentButton¶
Accent-colored CTA with optional Fluent symbol (2.66 A1 appearances).
import QWinUI3.Extras · src/extras/QWinUI3/Extras/AccentButton.qml
Category: Buttons & commands · Library: v2.80
Gallery: AccentButton — src/gallery/pages/AccentButtonPage.qml
Extends Button.
Example¶
AccentButton {
id: saveBtn
text: qsTr("Save")
symbol: FluentIcons.Save
appearance: "filled" // filled | subtle | outline | ghost
onClicked: save()
}
Notes¶
Prefer symbol: FluentIcons.* over iconGlyph. Default appearance is filled (solid accent). Inherits Button appearance API (2.66 A1).
API¶
Properties¶
| Name | Type | Description |
|---|---|---|
symbol |
var |
FluentIcons symbol (preferred over iconGlyph) |
iconGlyph |
string |
Raw Fluent glyph string fallback |
iconSize |
real |
Icon size in px |
effectiveIconGlyph |
string |
Resolved glyph string |
lightScheme |
bool |
True in light theme |
Signals¶
No custom signals (use inherited signals from the base type).
Methods¶
No custom methods (use inherited methods from the base type).
Inherited from Button¶
Also available (base type / Qt Quick Controls):
textenabledflat/highlightedclicked()
Generated from module sources by scripts/generate_component_docs.py — do not edit by hand.