Skip to content

CompassGauge

Heading / bearing compass (0–360°, wraparound).

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

Category: Charts & gauges · Library: v3.56

← Component index

Gallery: CompassGauge — src/gallery/pages/CompassGaugePage.qml

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

Extends Control.

Example

CompassGauge { heading: 42 }

Notes

Experimental. Prefer RadialGauge for non-wrapping scales. Dual-use as a heading readout.

API

Properties

Name Type Description
heading real Heading in degrees (0 = N, clockwise)
title string Primary title text
caption string Caption under the value
showCardinals bool —
needleBrush color —
isInteractive bool —
interactive alias —
normalizedHeading real —
cardinal string —

Signals

Signature Description
valueEdited(real value) —

Methods

Signature Description
setHeading(v) —

Inherited from Control

Also available (base type / Qt Quick Controls):

  • padding
  • font
  • background / contentItem

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