After watching many threads about getting selected rows numbers, I am really confused.
How do you get ROW numbers in QTableView using QStandardIte
QTableView
QStandardIte
Check selectedRows method of the QItemSelectionModel Class .
QModelIndexList selection = yourTableView->selectionModel()->selectedRows(); // Multiple rows can be selected for(int i=0; i< selection.count(); i++) { QModelIndex index = selection.at(i); qDebug() << index.row(); }