Buttons and input
Native Qt
Toggle
A descriptive boolean setting row with label, supporting copy, and change events.
Usage
Ruby example
Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.
toggle("Notifications", checked: true, description: "Show native alerts") { |checked| puts "Notifications: #{checked}" }
API
Component properties
10 component-specific values, plus shared item and layout properties.
labelLabel configuration for Toggle.propertydescriptionDescription configuration for Toggle.propertycheckedChecked configuration for Toggle.propertycursorCursor configuration for Toggle.propertyroundedRounded configuration for Toggle.propertyforegroundForeground configuration for Toggle.propertyaccentAccent configuration for Toggle.propertyfont_familyFont family configuration for Toggle.propertytitle_sizeTitle size configuration for Toggle.propertydescription_sizeDescription size configuration for Toggle.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