No matching signal for on_currentChanged with QItemSelectionModel
Running Qt 4.8 on CentOS. This message is displayed when the dialog is displayed:
QMetaObject::connectSlotsByName: No matching signal for on_currentChanged(QModelIndex,QModelIndex)
However, the dialog operates as expected. When an item is selected with keyboard or mouse, the correct slot is called with the correct data.
- selectionModel = ui.scenarioListTableView->selectionModel();
- QString selectedScenario = current.data().toString(); // this has the current selection
Other signals and slots on this dialog (and others) work fine. Selection mode is set to SingleSelection. Selection Behavior is SelectRows. QTableView has three columns.
What am I missing? Thanks for your time and assistance.
[EDIT: code formatting, please use @-tags, Volker]
So don’t create slots in such pattern
If you do not intend to use “auto connection”.