Hi, how can i use Completer with lineEdit when i setText in line by my custom button ?
Completer wont popup with my custom button, and with keyboard it popup.
Thanks a lot.
Hi, how can i use Completer with lineEdit when i setText in line by my custom button ?
Completer wont popup with my custom button, and with keyboard it popup.
Thanks a lot.
At a guess you need to call:Qt Code:
edit->setText(text); edit->completer()->setCompletionPrefix(text); // might not be needed edit->completer()->complete();To copy to clipboard, switch view to plain text mode
Hi,
I have the same problem.
I have a QLineEdit which is filled with a virtual keyboard.
With your method the completer is pop upped but when I select an item in the completer list, the selected item does not appear in the QLineEdit.
Thank you !
Bookmarks