How do not complete complete word by QCompleter?



  • I implemented word completion using "example":http://doc.trolltech.com/4.7/tools-customcompleter.html from Qt docs. All works fine except one issue: if the word is already complete - then QCompleter suggests it nevertheless. I want it to suggest only incomplete words.

    For example: if I typed "for" and possible matches are "for" and "forever" - now it suggests both matches. But I need it suggest only "forever". And if there are no possible incomplete words - do not suggest anything, no selection drop. I don't see how to turn this mode in QCompleter. Possibly it does not support this, does it?. Is that possible implement this by any other way? Do not suggest temporarily remove matching complete word from QCompleter list - this appears monstrously (this word should be added back after action).

    Any ideas?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.