PyQT4 | How to use scrollTo for QTableWidget?

There is a table:
self.table = QTableWidget()
I want to apply the scrollTo.
QAbstractItemView::scrollTo ( const QModelIndex & index, ScrollHint hint = EnsureVisible ) [pure virtual]
Trying to write something like (go to index 12):
def on_sc(self):
 self.table.scrollTo(12, hint=QAbstractItemView.EnsureVisible)

Or this:
def on_sc(self):
 self.table.scrollTo(self.table.item(12, 1), hint=QAbstractItemView.EnsureVisible)

But it's not working.
June 10th 19 at 14:57
0 answer

Find more questions by tags Python