Answer the question
In order to leave comments, you need to log in
How to check row selection on QTableView?
How can I check if a row is selected in a tableview?
tried like this:
if(ui->tableView->selectionModel()->selectedRows(0).isEmpty())
Answer the question
In order to leave comments, you need to log in
QItemSelectionModel *selectModel = ui->tableView->selectionModel();
selectModel->selectedRows().isEmpty()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question