BatteryGauge¶
Battery silhouette with charge fill and optional charging bolt.
import QWinUI3.Extras · src/extras/QWinUI3/Extras/BatteryGauge.qml
Category: Charts & gauges · Library: v2.80
Gallery: BatteryGauge — src/gallery/pages/BatteryGaugePage.qml
Extends Control.
Example¶
Notes¶
Experimental 0–100 battery. Prefer RingGauge for a generic closed KPI ring.
API¶
Properties¶
| Name | Type | Description |
|---|---|---|
value |
real |
— |
minimum |
real |
— |
maximum |
real |
— |
title |
string |
— |
unit |
string |
— |
charging |
bool |
— |
cautionThreshold |
real |
— |
criticalThreshold |
real |
— |
bodyRadius |
real |
— |
animatedValue |
real |
— |
animatedNorm |
real |
— |
severity |
int |
— |
fillColor |
color |
— |
Signals¶
No custom signals (use inherited signals from the base type).
Methods¶
| Signature | Description |
|---|---|
setValue(v) |
— |
Inherited from Control¶
Also available (base type / Qt Quick Controls):
paddingfontbackground/contentItem
Generated from module sources by scripts/generate_component_docs.py — do not edit by hand.