Buttons and input
Native Qt
Dropdown
A labeled native choice control for selecting one value from a compact option list.
Usage
Ruby example
Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.
dropdown :balanced, label: "Profile", options: %i[quiet balanced performance]
API
Component properties
12 component-specific values, plus shared item and layout properties.
labelLabel configuration for Dropdown.propertyvalueValue configuration for Dropdown.propertyoptionsOptions configuration for Dropdown.propertyforegroundForeground configuration for Dropdown.propertybackgroundBackground configuration for Dropdown.propertypopup_borderPopup border configuration for Dropdown.propertyaccentAccent configuration for Dropdown.propertyfont_familyFont family configuration for Dropdown.propertyrow_heightRow height configuration for Dropdown.propertypopup_row_heightPopup row height configuration for Dropdown.propertyshow_labelShow label configuration for Dropdown.propertycursorCursor configuration for Dropdown.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