PDA

View Full Version : getting position of qtablewidget current row



iskenderoguz
14th October 2013, 08:13
How can I get position of QTableWidget's currentRow()?

I use pos() for other widgets but currentRow does not have it. I use tablewidget->pos() to retrieve position of current row, but if tablewidget has scroolbar pos() function return wrong position.

ChrisW67
14th October 2013, 09:39
QTableView::rowViewportPosition() and QTableView::columnViewportPosition() look promising

iskenderoguz
21st October 2013, 08:18
Thnak you @ChrisW67