zui docs v0.0.5
GitHub ↗
Buttons and input Native Qt

Bar Indicator

Bar Indicator is a native Zui component in the buttons and input catalog, with 10 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
bar_indicator :wifi, inactive_icon: :warning, active: true, active_tooltip: "Connected"
API

Component properties

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

activeActive configuration for Bar Indicator.property
active_iconActive icon configuration for Bar Indicator.property
inactive_iconInactive icon configuration for Bar Indicator.property
active_tooltipActive tooltip configuration for Bar Indicator.property
inactive_tooltipInactive tooltip configuration for Bar Indicator.property
indicator_blockIndicator block configuration for Bar Indicator.property
foregroundForeground configuration for Bar Indicator.property
active_colorActive color configuration for Bar Indicator.property
font_familyFont family configuration for Bar Indicator.property
font_sizeFont size configuration for Bar Indicator.property
Show 17 shared item properties
visibleenabledopacityscalerotationzwidthheightfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

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

clickNative event payload
right_clickNative event payload
middle_clickNative event payload
wheelNative event payload