Buttons and input
Native Qt
Text Field
A native single-line text input with placeholder, selection, focus, submit, and reactive input 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.
text_field("", placeholder: "Project name") { |value| puts "Project: #{value}" }
API
Component properties
9 component-specific values, plus shared item and layout properties.
textText configuration for Text Field.propertyplaceholderPlaceholder configuration for Text Field.propertypasswordPassword configuration for Text Field.propertyforegroundForeground configuration for Text Field.propertyaccentAccent configuration for Text Field.propertyselection_tintSelection tint configuration for Text Field.propertyhorizontal_paddingHorizontal padding configuration for Text Field.propertyvertical_paddingVertical padding configuration for Text Field.propertycursorCursor configuration for Text 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↗
submitNative event payload↗
focusNative event payload↗
blurNative event payload↗
inputNative event payload