Skip to content

HyperlinkButton

Link-styled button.

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

Category: Buttons & commands · Library: v2.80

← Component index

Gallery: HyperlinkButtonsrc/gallery/pages/HyperlinkButtonPage.qml

Extends AbstractButton.

Example

HyperlinkButton {
    id: link
    text: qsTr("Learn more")
    navigateUri: "https://example.com"
    onClicked: Qt.openUrlExternally(navigateUri)
}
// --- API ---
// link.navigateUri / showExternalGlyph / navigateMode (auto | external | inPage | signal)

Notes

Link-styled button; navigateUri + optional external glyph. navigateMode auto: "#anchor" scrolls in-page; http(s) opens externally.

API

Properties

Name Type Description
url url URL / source URL
navigateUri alias Navigate to a URI
underlineStyle string always | onHover | never
appearance string Visual variant: ghost (default link) | subtle | outline | filled — 2.66 A1
symbol var FluentIcons symbol (preferred over iconGlyph)
iconGlyph string Raw Fluent glyph string fallback
visited bool True when the step was visited
showExternalGlyph bool Show external-link glyph
navigateMode string navigateMode: auto | external | inPage | signal
effectiveIconGlyph string Resolved glyph string

Signals

Signature Description
navigateRequested(url target) Emitted to request navigation

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.