📅  最后修改于: 2022-03-11 15:04:33.745000             🧑  作者: Mango
QModelIndexList indexList = yourTableView->selectionModel()->selectedIndexes();
int row;
foreach (QModelIndex index, indexList) {
row = index.row();
....
}