QLineEdit completions
Unsolved
General and Desktop
-
Hello,
does anybody know why completions dont work on QLineEdit when I use QLineEdit::setText(text).
If I use keyboard everything works fine.If I use QCompleter::complete(), all completions are shown.
What I should do to display all maching completions?
BR
Tomek -
Hi,
AFAIK, because completion are triggered by user inputs not by programmatically setting text. So you should call QCompleter::setCompletionPrefix() after setText and before QCompleter::complete()