Buttons and input
Native Qt
Color Picker
A native color selection control with optional alpha and dialog presentation.
Usage
Ruby example
Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.
color_picker "#b7ff5a", label: "Accent", show_alpha: true
API
Component properties
17 component-specific values, plus shared item and layout properties.
colorColor configuration for Color Picker.propertylabelLabel configuration for Color Picker.propertytitleTitle configuration for Color Picker.propertyopenedOpened configuration for Color Picker.propertyshow_alphaShow alpha configuration for Color Picker.propertyno_buttonsNo buttons configuration for Color Picker.propertynative_dialogNative dialog configuration for Color Picker.propertywidthWidth configuration for Color Picker.propertyheightHeight configuration for Color Picker.propertyenabledEnabled configuration for Color Picker.propertyforegroundForeground configuration for Color Picker.propertybackgroundBackground configuration for Color Picker.propertyborder_colorBorder color configuration for Color Picker.propertyradiusRadius configuration for Color Picker.propertyfont_familyFont family configuration for Color Picker.propertyfont_sizeFont size configuration for Color Picker.propertyvisibleVisible configuration for Color Picker.propertyShow 13 shared item properties
opacityscalerotationzfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction
Events
Subscribe with on widget, :event and keep behavior in Ruby.
↗
inputNative event payload↗
changeNative event payload↗
acceptNative event payload↗
rejectNative event payload↗
openNative event payload↗
closeNative event payload