QCompleter: Multiple words in one line, want completion on each word individually
-
Hi,
I'm using QCompleter to complete words in a QLineEdit. The lineedit handles the input to a command-line interface (built on AngelScript), so I must support lines like:
Item i = Item("ItemName");
and similar.I've collected all keywords and identifiers in a QStringListModel and set that as the completion model. If I type
Ite
I will get "Item" suggested to me. However, if I continue typing:
Item ite
I do not get a suggestion for the second word. I'd be grateful for any ideas on how to do this.
Thanks in advance!
-
Hi
The default operation will not do that I think as it see full text and dont know
u want only the newly typed.
The functionality you are after seems to be very like
http://doc.qt.io/qt-5/qtwidgets-tools-customcompleter-example.html -
Hi
The default operation will not do that I think as it see full text and dont know
u want only the newly typed.
The functionality you are after seems to be very like
http://doc.qt.io/qt-5/qtwidgets-tools-customcompleter-example.html