Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 QComboBox 让用户选择大量的选项。目前用户可以键入一个字符,QComboBox 会选择该字符的第一行,但我觉得这还不够。用户是否已经通过输入文本直接搜索项目?谢谢
您可以使用void QComboBox::setCompleter(QCompleter *completer)
void QComboBox::setCompleter(QCompleter *completer)