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.
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.propertyiconIcon configuration for Action.propertyicon_sourceIcon source configuration for Action.propertyicon_colorIcon color configuration for Action.propertyicon_widthIcon width configuration for Action.propertyicon_heightIcon height configuration for Action.propertyenabledEnabled configuration for Action.propertycheckableCheckable configuration for Action.propertycheckedChecked configuration for Action.propertyshortcutShortcut configuration for Action.propertyvisibleVisible configuration for Action.propertyShow 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