qt - Temporarily disable QCompleter? -
i have qlineedit
plus qlistview
widget,
- when
qlistview
visible, completer should disabled. - otherwise completer enabled.
but appears there's no enable/disable interface qcompleter
. should then?
removing completer qlineedit
disable it, can later set again enable it. remove it, call qlineedit::setcompleter(qcompleter*)
null pointer. use same member function set/restore again later.
Comments
Post a Comment