Hi,
I used the QSortFilterProxyModel as its model, and found in my TableView, the scrollTo() can't work.
I checked the QT document, it said we can call scrollTo() two times to force scrolling, but it doesn't work.
Do you have any idea, thanks.
Hi,
I used the QSortFilterProxyModel as its model, and found in my TableView, the scrollTo() can't work.
I checked the QT document, it said we can call scrollTo() two times to force scrolling, but it doesn't work.
Do you have any idea, thanks.
You have to pass the index from QSortFilterProxyModel to scrollTo() and not from your base model.
Hi,
Yes, I did use the index of QSortFilterProxyModel(), but can't work.
Hi,
I know the root cause. It is because I set the cell hidden, so scrollTo() failed.
Thanks.
Bookmarks