Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Filtering and sorting on QCompleter

Filtering and sorting on QCompleter

Scheduled Pinned Locked Moved Unsolved General and Desktop
qcomboboxqcompleter
1 Posts 1 Posters 548 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Zee_07Z Offline
    Zee_07Z Offline
    Zee_07
    wrote on last edited by
    #1

    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.

    Thanks and Kind Regards,
    Zee_07

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved