Extending a QCompleter to show additional information

為{幸葍}努か 提交于 2019-12-08 04:12:57

问题


I have a QCompleter using my own QAbstractItemModel to help autocomplete a QLineEdit. It works great. I was wondering how I might go to add additional data displayed in the QCompleter's list of suggestions. For example, the kind of stuff shown in NetBeans when you press Ctrl+space:

Is there a way to subclass QCompleter to get it to show additional data?

来源:https://stackoverflow.com/questions/24958472/extending-a-qcompleter-to-show-additional-information

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!