I have a playlist table inherited from QTableView that periodically changes of line. It has also an autoScroll method that tries to scroll automatically to next line if it is not visible in the QTableView::vierport().
The problem is that some times the current playing line is located in a specific row i.e. 500 and I want to scrollTo() the 2000. I have debugged Qt and I have seen that it stores the new value but does not scroll due to the new viewport doesn’t intersects with the old. The reason seems that it is done for performance reasons as it is explained in a comment at QAbstractItemView::update().
Is there any way to force the line scroll change?
↧