How to use Qt's QCompleter to do a partial match anywhere?

220 Views Asked by At

We want to use QCompleter for searching in a list of items and everything is fine, except just one thing:

QCompleter does a search using "partial match at the beginning" instead of "partial match anywhere". IOW:

Actual: searching for 'doc' will return 'dock', 'doctor' etc.

Expected: searching for 'doc' will return 'dock' but also 'undocked' etc.

0

There are 0 best solutions below