Buttons and input
Native Qt
Button Group
Button Group is a native Zui component in the buttons and input catalog, with 9 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.
button_group :day, options: [{ label: "Day", value: :day }, { label: "Week", value: :week }]
API
Component properties
9 component-specific values, plus shared item and layout properties.
valueValue configuration for Button Group.propertyoptionsOptions configuration for Button Group.propertyforegroundForeground configuration for Button Group.propertybackgroundBackground configuration for Button Group.propertyaccentAccent configuration for Button Group.propertyfont_familyFont family configuration for Button Group.propertyfont_sizeFont size configuration for Button Group.propertyfocusableFocusable configuration for Button Group.propertycursor_indexCursor index configuration for Button Group.propertyShow 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.
↗
changeNative event payload↗
hoverNative event payload