Qt Quick Controls 2 offers a variety of input controls for both numeric and textual input.
ComboBox | Combined button and popup list for selecting options |
Dial | Circular dial that is rotated to set a value |
RangeSlider | Used to select a range of values by sliding two handles along a track |
Slider | Used to select a value by sliding a handle along a track |
TextArea | 多行文本输入区域 |
TextField | 单行文本输入字段 |
Tumbler | Spinnable wheel of items that can be selected |
Each type of input control has its own specific target use case. The following sections offer guidelines for choosing the appropriate type of input control, depending on the use case.
ComboBox is used to select a value from a static multiple-line drop-down list. It is not possible to add new values, and only one option can be selected.
Recommendations:
另请参阅 CheckBox Control , Tumbler Control .
Dial is similar to a traditional dial knob that is found on devices such as stereos or industrial equipment.
The dial is rotated by clicking and dragging, with the handle indicating the value of the dial.
另请参阅 Tumbler Control .
TextArea is a multi-line text editor.
TextField is a single line text editor.
另请参阅 Tumbler Control .
Slider is used to select a value by sliding a handle along a track.
RangeSlider is used to select a range specified by two values, by sliding each handle along a track.
另请参阅 Slider Control .
Tumbler is a spinnable wheel of items that can be selected.
另请参阅 ComboBox Control .