Skip to content

KeyVisual

Single keyboard key chrome.

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

Category: Other · Library: v2.80

← Component index

Gallery: KeyVisualsrc/gallery/pages/KeyVisualPage.qml

Extends AbstractButton.

Example

KeyVisual {
    id: key
    text: "Ctrl"
}
// --- API ---
// key.text / keySize

Notes

Single keyboard key glyph (e.g. Ctrl); text is the caption.

API

Properties

Name Type Description
keyText string Display label for the key (e.g. "Ctrl", "P", "Esc").
symbol var FluentIcons symbol (preferred over iconGlyph)
iconGlyph string Raw Fluent glyph string fallback
size string "small" | "medium" | "large"
emphasized bool Emphasized chrome
toolTipText string Tooltip text
minWidth real Minimum width
effectiveIconGlyph string Resolved glyph string

Signals

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

Methods

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

Inherited from AbstractButton

Also available (base type / Qt Quick Controls):

  • text
  • enabled
  • down / pressed / hovered
  • clicked()

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