IndexAt() of ListView fails with QSortFilterProxyModel enabled



  • I'm using QSortFilterProxyModel to provide filtered result via a list view.

    The indexAt() of list view is working as expected before I pass any string into the QSortFilterProxyModel (i.e. by setFilterFixedString).

    However, after I passed a string to filter, the indexAt() of ListView will get mess value, returns -1 for the most of the time. Even after I removed the whole string for filtering(displaying all the data), the function still not working.

    Can anyone help? Many thanks!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.