Thanks caduel, your suggestions worked great!
Just for reference - this is the implementaton:
m_model->setData(index, 99);
QModelIndex topVisibleRow = tableView->indexAt(QPoint(5,5));
m_model->setData(index, 99);
tableView->scrollTo(topVisibleRow, QAbstractItemView::PositionAtTop);
To copy to clipboard, switch view to plain text mode
If the row was deleted instead of updated, would the topVisibleRow index still be valid or would it reference the previous row in the model?
This restores the table position after the triggered select(). I can save a single selected row and re-select that, but there's no way to restore mulitple rows (which may or may not be contiguous), but I can live with that.
Thanks for your help!
Bookmarks