Description of type QComboBox¶
Constructor of type QComboBox¶
Syntax¶
Properties of type QComboBox¶
Below is a list of the available properties provided by the QComboBox type. Click on a property name to see its detailed description and examples.
| Property | Description | 
|---|---|
| currentText | The text of the currently selected item. | 
| currentIndex | The index of the currently selected item (starts from 0).-1if no item is selected. | 
| count | The total number of items in the combo box. | 
| editable | If true, the user can edit the text (only if the combo box is editable). | 
Methods of type QComboBox¶
Below is a list of the available methods provided by the QComboBox type. Click on a method name to see its detailed description and examples.
| Method | Description | 
|---|---|
| addItem() | Adds a new item with the given text to the end of the combo box. | 
Signals of type QСomboBox¶
Below is a list of the available signals provided by the QComboBox type. Click on a signal name to see its detailed description and examples.
| Signal | Description | 
|---|---|
| currentIndexChanged(STRING!!!) | Emitted when the currently selected item changes. The new index is passed as an argument. | 
| currentTextChanged() | Emitted when the current text changes (either by selection or editing). |