Obsolete Members for QComboBox
The following members of class QComboBox are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Properties
(obsolete)
autoCompletion : bool(obsolete)
autoCompletionCaseSensitivity : Qt::CaseSensitivity(obsolete)
windowIconText : QString
Public Functions
(obsolete) void | dumpObjectInfo() |
(obsolete) void | dumpObjectTree() |
(obsolete) QList<T> | findChildren(const QRegExp ®Exp, Qt::FindChildOptions options) const |
(obsolete) bool | isEnabledToTLW() const |
(obsolete) bool | isTopLevel() const |
(obsolete) QWidget * | topLevelWidget() const |
Signals
(obsolete) void | currentIndexChanged(const QString &text) |
Related Non-Members
(obsolete) T | qFindChild(const QObject *obj, const QString &name) |
(obsolete) QList<T> | qFindChildren(const QObject *obj, const QString &name) |
Macros
Property Documentation
autoCompletion : bool
This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This property holds whether the combobox provides auto-completion for editable items
Use setCompleter() instead.
By default, this property is true
.
This property was introduced in Qt 4.1.
Access functions:
bool | autoCompletion() const |
void | setAutoCompletion(bool enable) |
See also editable.
autoCompletionCaseSensitivity : Qt::CaseSensitivity
This property is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This property holds whether string comparisons are case-sensitive or case-insensitive for auto-completion
By default, this property is Qt::CaseInsensitive.
Use setCompleter() instead. Case sensitivity of the auto completion can be changed using QCompleter::setCaseSensitivity().
Access functions:
Qt::CaseSensitivity | autoCompletionCaseSensitivity() const |
void | setAutoCompletionCaseSensitivity(Qt::CaseSensitivity sensitivity) |
See also autoCompletion.
Member Function Documentation
[signal]
void QComboBox::currentIndexChanged(const QString &text)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use currentTextChanged(const QString &) or currentIndexChanged(int) instead.
This signal is sent whenever the currentIndex in the combobox changes either through user interaction or programmatically. The item's text is passed.
Note: Signal currentIndexChanged is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:
connect(comboBox, QOverload<const QString &>::of(&QComboBox::currentIndexChanged), [=](const QString &text){ /* ... */ });
This function was introduced in Qt 4.1.
bool QComboBox::autoCompletion() const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use completer() instead.
Note: Getter function for property autoCompletion.
See also setAutoCompletion().
Qt::CaseSensitivity QComboBox::autoCompletionCaseSensitivity() const
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use setCompleter() and QCompleter::setCaseSensitivity() instead.
Note: Getter function for property autoCompletionCaseSensitivity.
See also setAutoCompletionCaseSensitivity().
void QComboBox::setAutoCompletion(bool enable)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use setCompleter() instead.
Note: Setter function for property autoCompletion.
See also autoCompletion().
void QComboBox::setAutoCompletionCaseSensitivity(Qt::CaseSensitivity sensitivity)
This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Use setCompleter() and QCompleter::setCaseSensitivity() instead.
Note: Setter function for property autoCompletionCaseSensitivity.
See also autoCompletionCaseSensitivity().