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.
Qt Code:
  1. QStringList frecs = {"One","Two","Three","Four","Five"}
  2. QCompleter *completer = new QCompleter(frecs, this);
  3. completer->setCompletionMode(QCompleter::PopupCompletion);
  4. completer->setFilterMode(Qt::MatchContains);
  5. completer->setCaseSensitivity(Qt::CaseInsensitive);
  6. completer->popup()->installEventFilter(this);
  7. ui->txSearch->setCompleter(completer);
To copy to clipboard, switch view to plain text mode 

Can anybody help to resolve this issue.

Cheers

Manish