QCompleter popup item is not selectable using mouse
Hi All,
I am using QCompleter on QLineEdit. I am able to attach completer and popup is display with the filter of text I typed. The only challenge is that whatever filtered list is there I am able to select with arrow key but when I tried to select item from popup using mouse, it is not happening.
I have written below code.
Code:
QStringList frecs
= {"One",
"Two",
"Three",
"Four",
"Five"} completer
->setCompletionMode
(QCompleter::PopupCompletion);
completer->setFilterMode(Qt::MatchContains);
completer->setCaseSensitivity(Qt::CaseInsensitive);
completer->popup()->installEventFilter(this);
ui->txSearch->setCompleter(completer);
Can anybody help to resolve this issue.
Cheers
Manish
Re: QCompleter popup item is not selectable using mouse
What happens when you remove the event filter you have installed on the popup?
Re: QCompleter popup item is not selectable using mouse
Event though I remove event filter no change and still mouse does not work.