Buttons and input
Native Qt
Number Field
A labeled numeric field with range, step, compact sizing, 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.
number_field 8, label: "Workers", from: 1, to: 32, step: 1
API
Component properties
11 component-specific values, plus shared item and layout properties.
labelLabel configuration for Number Field.propertyvalueValue configuration for Number Field.propertyfromFrom configuration for Number Field.propertytoTo configuration for Number Field.propertystepStep configuration for Number Field.propertyforegroundForeground configuration for Number Field.propertyaccentAccent configuration for Number Field.propertyfont_familyFont family configuration for Number Field.propertyfont_sizeFont size configuration for Number Field.propertyfield_widthField width configuration for Number Field.propertycursorCursor configuration for Number Field.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