Buttons and input
Native Qt
Checkbox
A labeled boolean input with native focus, hover, and change behavior.
Usage
Ruby example
Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.
checkbox("Include archived", checked: false) { |checked| puts "Archived: #{checked}" }
API
Component properties
10 component-specific values, plus shared item and layout properties.
labelLabel configuration for Checkbox.propertycheckedChecked configuration for Checkbox.propertyforegroundForeground configuration for Checkbox.propertyaccentAccent configuration for Checkbox.propertybackgroundBackground configuration for Checkbox.propertyfont_familyFont family configuration for Checkbox.propertyfont_sizeFont size configuration for Checkbox.propertyindicator_sizeIndicator size configuration for Checkbox.propertyspacingSpacing configuration for Checkbox.propertycursorCursor configuration for Checkbox.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