为QCombox 添加QCompleter;
1 QComboBox *cmbTest = new QCombox; 2 QCompleter *pCompleter = new QCompleter(cmbTest->model(), this); 3 cmbTest->setCompleter(pCompleter);
以上就实现了组合框的自动查找。