Obsolete Members for QComboBox

以下成员源于类 QComboBox 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

特性

特性文档编制

autoCompletion : bool

This property holds whether the combobox provides auto-completion for editable items.

使用 setCompleter () 代替。

默认情况下,此特性为 true。

该特性在 Qt 4.1 引入。

访问函数:

bool autoCompletion () const
void setAutoCompletion (bool enable )

另请参阅 editable .

autoCompletionCaseSensitivity : Qt::CaseSensitivity

This property holds whether string comparisons are case-sensitive or case-insensitive for auto-completion.

默认情况下,此特性为 Qt::CaseInsensitive .

使用 setCompleter () instead. Case sensitivity of the auto completion can be changed using QCompleter::setCaseSensitivity ().

访问函数:

Qt::CaseSensitivity autoCompletionCaseSensitivity () const
void setAutoCompletionCaseSensitivity (Qt::CaseSensitivity sensitivity )

另请参阅 autoCompletion .