Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

qtableview get selected row

QModelIndexList indexList = yourTableView->selectionModel()->selectedIndexes();
int row;
foreach (QModelIndex index, indexList) {
    row = index.row();
    ....
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #qtableview #selected #row
ADD COMMENT
Topic
Name
8+6 =