I am using a QTableView to display a QSqlTableModel.
Qt Code:
  1. ui->tableView->setModel(myTableModel);
  2. ui->tableView->show();
To copy to clipboard, switch view to plain text mode 

But when the user changes rows I want to get some information from the db and display it in a side widget. But in QTableView there is no signal that the row has been changed. I cannot use a QTableWiget because it will not "bind" to a QSqlTableModel...it says setModel() is private.

So QTableWidget will give a signal when a row has changed positions but it will not bind to the QSqlTableModel.

What is the best way to do this?