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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.