And another question reguarding the Custom Completer Example:
I type at least three letters to have the completer pop up (e.g. add) then I enter a point that will hide the completer as wished. I enter some charater and delete it until the point. The completer will now pop up again giving me hints that do not make sense as I already typed the point (end of word char). If I select one of the hints that is longer than "add." it will complete "add.ing".
I assume I would have to do some changes to QString TextEdit::textUnderCursor() const to return only the chars after an end of word char?
Or can I set the completer to be strict and not to show hints when the completionPrefix does not match any string? (This happens also with other chatrs like =, ?, ...)
-Jens




Reply With Quote
Bookmarks