Important: Please read the Qt Code of Conduct -

QCompleter substring queries

  • I have a QCompleter with the wordlist

    @QStringList wordlist;
    wordlist << "a x" << "b x" << "c x" << "d y"@

    Which method would I need to reimplement to make the QCompleter suggest
    "a x"
    "b x"
    "c x"@

    if I type "x" in a QLineEdit that has the custom QCompleter as it's completer?

    Note: I'm not looking for a solution here, but rather asking which method determines the results of the query. I need to manipulate the query method much further than this simple example.

Log in to reply