[Qt-interest] qcompleter - a more efficient matching
cb
cb at noaddr.com
Sun Nov 14 06:28:26 CET 2010
I also want to match items using the "contains" paradigm instead of matching
by prefix. I thought that I should somehow do my filtering before the
completer kicks in and limit my model to the items that match according to
my matching algorithm. But then the completer tries to match by prefix. I
could trick it and populate the column mapped to the edit role to the prefix
value.
Would that work? Come on boffins let's get this sorted!!
"cb" <cb at noaddr.com> wrote in message news:ibnopv$aaq$1 at eple.troll.no...
> Hello:
>
> Currently the qcompleter tries to find a match by doing a linear search,
> or by doing a binary search in case the modelSorting is set to
> xxxSortedModel.
>
> Is it possible to take over the searching mechanism to provide a more
> efficient algorithm? Can you point to a sample?
>
> Thanks
>
More information about the Qt-interest-old
mailing list