Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Sorting with QSortFilterProxyModel
Forum Updated to NodeBB v4.3 + New Features

Sorting with QSortFilterProxyModel

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 398 Views
  • 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.
  • D Offline
    D Offline
    DBoosalis
    wrote on last edited by
    #1

    I have implemented a SortFilterproxyModel into my list view following the steps in the Nurmi's Blog post found here: [https://blog.qt.io/blog/2014/04/16/qt-weekly-6-sorting-and-filtering-a-tableview/](link url)

    Everything works fine, excecpt that after a few times of changing the sort column of my ListView the view gets a little wacked - lots of spaces, text written over text. I am using Qt 5.5 and have tried everything clearing the data in my cpp and reapplying the source, calling dataChanged for the entire data set, issuing beginResetModel and endResetModel. But nothing seems to help. The screen screw up seems to be at random.

    Does anyone know of a way I can cleanly reset the data after modifying the sort column or sort order.

    Any help most appreciated.

    Thanks
    David

    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