I inserted a QTableView in my GUI and set selectionMode = SingleSelection , selectionBehavior = SelectRows.
I want to connect my slot to a signal (selection changed or another signal) by changing the selected row.
Please see my code:
connect(ui->tableView->selectionModel(),
SIGNAL( selectionChanged(const QItemSelection&,
const QItemSelection&)), this ,SLOT(myslot()));
I get an error message:
QObject::connect: Cannot connect (null)::selectionChanged(const QItemSelection&, const QItemSelection&) to Info::myslot