Extending a QCompleter to show additional informat

2019-06-02 09:23发布

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:

enter image description here

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

0条回答
登录 后发表回答