Qt QComboBox 自动查找匹配项功能实现

为QCombox 添加QCompleter;

1 QComboBox  *cmbTest = new QCombox;
2 QCompleter *pCompleter = new QCompleter(cmbTest->model(), this);
3 cmbTest->setCompleter(pCompleter);

以上就实现了组合框的自动查找。

原文地址:https://www.cnblogs.com/ybqjymy/p/14377935.html