QtIndustrialWidgets 2.3.0
Modern, High-Performance Industrial Instruments & SCADA Widgets for Qt
Loading...
Searching...
No Matches
QtIndustrialWidgets::CircularBargraph Class Reference

High-contrast circular arc indicator composed of discrete curved LED segments. More...

#include <CircularBargraph.h>

Inheritance diagram for QtIndustrialWidgets::CircularBargraph:

Detailed Description

High-contrast circular arc indicator composed of discrete curved LED segments.

CircularBargraph displays sensor readings, process variables, or audio levels across an adjustable angular arc composed of discrete, curved LED segments (e.g. 16, 24, 32, or 48 segments).

Key features:

  • Operating modes: progressive illuminated LED stack (DisplayMode::Bar) or single cursor LED (DisplayMode::Dot).
  • Colour zones by position: each segment takes the colour of the zone (Normal, Warning, Critical) containing its centre; unlit segments show a dimmed tint of their zone, and the Dot cursor takes the colour of its own zone.
  • Peak-hold indicator segment with configurable hold duration and ballistic decay falloff.
  • Optional centered digital readout pod with unit label.
  • Value state (valueState()): out-of-range inputs (including ±Inf) are shown at the range bound with a blinking end segment and a '<' / '>' readout; a NaN input is shown as Invalid (all segments ghost, readout "---"). D-pointer ABI stability.

Fonts: the texts use the family, weight and style of the widget font (setFont(), style sheets); their sizes come from the widget geometry and do not follow the size of the widget font, because the layout does not yet make room for larger text.

auto *bargraph = new qiw::CircularBargraph(parent);
bargraph->setRange(0.0, 100.0);
bargraph->setWarningThreshold(70.0);
bargraph->setErrorThreshold(85.0);
bargraph->setValue(45.0);
High-contrast circular arc indicator composed of discrete curved LED segments.
Definition CircularBargraph.h:50

The documentation for this class was generated from the following file: