Answers for "qtableview get selected row"

C
0

qtableview get selected row

QModelIndexList indexList = yourTableView->selectionModel()->selectedIndexes();
int row;
foreach (QModelIndex index, indexList) {
    row = index.row();
    ....
}
Posted by: Guest on June-01-2020

Code answers related to "qtableview get selected row"

Code answers related to "C"

Browse Popular Code Answers by Language