zui docs v0.0.5
GitHub ↗
Charts and visualization Native Qt

Gauge

Gauge is a native Zui component in the charts and visualization catalog, with 15 component-specific properties.

Usage

Ruby example

Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.

Ruby
gauge [72], value: 72, minimum: 0, maximum: 100, label: "CPU", show_label: true
API

Component properties

15 component-specific values, plus shared item and layout properties.

valueValue configuration for Gauge.property
valuesValues configuration for Gauge.property
minimumMinimum configuration for Gauge.property
maximumMaximum configuration for Gauge.property
widthWidth configuration for Gauge.property
heightHeight configuration for Gauge.property
colorColor configuration for Gauge.property
track_colorTrack color configuration for Gauge.property
thicknessThickness configuration for Gauge.property
labelLabel configuration for Gauge.property
label_formatLabel format configuration for Gauge.property
show_labelShow label configuration for Gauge.property
font_familyFont family configuration for Gauge.property
font_sizeFont size configuration for Gauge.property
visibleVisible configuration for Gauge.property
Show 14 shared item properties
enabledopacityscalerotationzfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

Subscribe with on widget, :event and keep behavior in Ruby.

selectNative event payload
hoverNative event payload