Unsolved Filtering and sorting on QCompleter
Zee_07 last edited by
I am using Qcompleter inside Editable QcomboBox. Lets assume in QComboBox model we have 4 items ( 6-8, 8-8,
68-88, 88-88). Now in editable QComboBox lineedit if I write 8 with MatchFalgs on QCompleter then completer->popup() displays items in fallowing sequence:
Qt::MatchContains o/p ( 6-8, 8-8, 68-88, 88-88)
Qt::MatchStartsWith o/p ( 8-8, 88-88)
Qt::MatchContains | Qt::MatchStartsWith o/p ()
I want to get QComplter popup model sequence like this (8-8, 88-88, 6-8, 68-88). Something like, first all items with Qt::MatchStartsWith flag and the rest of the items from Qt::MatchContains.
Please help me out to get this sequence in QCompleter popup.