myTableView->selectionModel()->currentIndex().row()
Gives you the index of the currently selected row. From there, you should have enough information to find a pair of rows / columns in your model.
It will also QItemSelectionModel::selectedRows()tell you how many rows are selected.
Chris source
share