简体   繁体   English

在Qt中使用QComboBox快速查找项目

[英]Quick find item with QComboBox in Qt

I'm using the QComboBox to let the user select a very large quantity of choices. 我正在使用QComboBox让用户选择非常多的选择。 For the moment the user can type a character and the QComboBox selects the first row with this character, but I feel that it's just not enough. 目前,用户可以键入一个字符,而QComboBox选择带有该字符的第一行,但我觉得这还不够。 Is there any thing already done for the user to search directly the item by entering a text? 用户已经通过输入文本直接搜索商品吗? Thanks 谢谢

您可以使用void QComboBox::setCompleter(QCompleter *completer)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM