aguleo
4th March 2014, 21:38
Hi,
I have a QTableView and a QDataWidgetMapper that share the same model (QSqlTableModel).
This code allows sinchronization when i click on the table:
connect(view->selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)) , mapper, SLOT(setCurrentModelIndex(QModelIndex)));
What is the equivalent connect to use when changing the current index in the QDataWidgetMapper???
I have a QTableView and a QDataWidgetMapper that share the same model (QSqlTableModel).
This code allows sinchronization when i click on the table:
connect(view->selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)) , mapper, SLOT(setCurrentModelIndex(QModelIndex)));
What is the equivalent connect to use when changing the current index in the QDataWidgetMapper???