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

Action

Action is a native Zui component in the buttons and input catalog, with 11 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
action("Refresh", icon: :refresh, shortcut: "Ctrl+R") { puts "Refresh requested" }
API

Component properties

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

textText configuration for Action.property
iconIcon configuration for Action.property
icon_sourceIcon source configuration for Action.property
icon_colorIcon color configuration for Action.property
icon_widthIcon width configuration for Action.property
icon_heightIcon height configuration for Action.property
enabledEnabled configuration for Action.property
checkableCheckable configuration for Action.property
checkedChecked configuration for Action.property
shortcutShortcut configuration for Action.property
visibleVisible configuration for Action.property
Show 15 shared item properties
opacityscalerotationzwidthheightfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

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

triggerNative event payload
toggleNative event payload
changeNative event payload