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
Bookmarks