【转载】pyqt5 combox自动补全

http://blog.sina.com.cn/s/blog_a6fb6cc90101gu7w.html

self.comboBox_test.clear()
strList = ['000001.SZ','000002.SZ']
qCompleter = QCompleter(strList)
qCompleter.setCaseSensitivity(Qt.CaseInsensitive)
self.comboBox_test.setCompleter(qCompleter) 
self.comboBox_test.addItems(strList)

 

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页