Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
IndexAt() of ListView fails with QSortFilterProxyModel enabled
Deqing last edited by
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!