QItemSelectionModel *select = tableview->selectionModel();
QItemSelctionModel has following calls to retrieve the list of QModelIndex.
QModelIndexList selectedColumns ( int row = 0 ) const
QModelIndexList selectedIndexes () const
QModelIndexList selectedRows ( int column = 0 ) const
From QModelIndex to col and row
int row = modelindex.row()
int col = modelindex.col()
From (row, col) to QModelIndex
QModelIndex idx = QTableModel->index(row, col)