Qt World Summit: Submit your Presentation

QSortFilterProxyModel and incremental sorting

  • Does QSortFilterProxyModel support incremental sorting? Meaning, the model gets sorted and then each additional update is inserted in sorted order without having to re-sort the entire thing. Is there a way to do this without subclassing QAbstractProxyModel?

  • Moderators

    i believe it does, but i also may be wrong here.
    But what prevents you from simply trying it yourself? This can be tested with a few lines of code...

  • I have tested it, and it does NOT incrementally sort by default. I'm asking if there's a setting or technique that I don't know about.

Log in to reply