Use an editor or selector when the user should enter or pick a value.
LineEdit is a single-line text field. An entry shows the text, a caret, and an optional selection. Placeholder text can appear when the field is empty.
SpinBox is an integer in a range. An entry shows the number. Up and down controls step it. A style may merge those controls with the entry or place them beside it.
ComboBox is a value chosen from a list, or typed when the box is editable. An entry shows the current text. A button opens a popup list.
Slider is a value chosen along a range by dragging. A track shows the range. A handle shows the current value.
LineEditor is not a control. It stores the text, caret, and scroll of one line. LineEdit, SpinBox, and ComboBox use it.
Appearance follows the application style. On invalidate the control binds a family renderer through a styler. Widget-local brushes, pens, colors, fonts, and setRenderer() overlay that style without replacing it.
Classes | |
| class | ComboBox |
| Provides a text entry field with a drop-down list. More... | |
| class | ComboBoxState |
| Transient visual state of a combo box. More... | |
| class | ComboBoxButtonState |
| Transient visual state of a combo-box drop button. More... | |
| class | ComboBoxRenderer |
| Renders the look of a combo box. More... | |
| class | ComboBoxStyler |
| Binds a combo box to the current style renderer. More... | |
| class | LineEdit |
| Single-line text field. More... | |
| class | LineEditor |
| Single-line text, caret, and scroll helper. More... | |
| class | LineEditState |
| Transient visual state of a line edit. More... | |
| class | LineEditRenderer |
| Renders the look of a line edit. More... | |
| class | LineEditStyler |
| Binds a line edit to the current style renderer. More... | |
| class | Slider |
| Value chosen along a range by dragging a handle on a track. More... | |
| class | SliderState |
| Transient visual state of a slider. More... | |
| class | SliderRenderer |
| Renders the look of a slider. More... | |
| class | SliderStyler |
| Binds a slider to the current style renderer. More... | |
| class | SpinBoxButton |
| Up or down control used by a spin box. More... | |
| class | SpinBox |
| Integer editor with a range and step controls. More... | |
| class | SpinBoxState |
| Transient visual state of a spin box. More... | |
| class | SpinBoxRenderer |
| Renders the look of a spin box. More... | |
| class | SpinBoxStyler |
| Binds a spin box to the current style renderer. More... | |