Hi,
I have a QTableView and a QDataWidgetMapper that share the same model (QSqlTableModel).
This code allows sinchronization when i click on the table:
Qt Code:
connect(view->selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)), mapper, SLOT(setCurrentModelIndex(QModelIndex)));To copy to clipboard, switch view to plain text mode
What is the equivalent connect to use when changing the current index in the QDataWidgetMapper???


Reply With Quote


Bookmarks