Qt 两个不同插槽上的CurrentRow已更改信号
我有以下插槽和信号Qt 两个不同插槽上的CurrentRow已更改信号,qt,qt4,signals-slots,Qt,Qt4,Signals Slots,我有以下插槽和信号 connect(ui.tableView->selectionModel(), SIGNAL(currentRowChanged(QModelIndex, QModelIndex)), mapper, SLOT(setCurrentModelIndex(QModelIndex))); connect(ui.tableView->selectionModel(), SIGNAL(currentRowChang
connect(ui.tableView->selectionModel(), SIGNAL(currentRowChanged(QModelIndex, QModelIndex)),
mapper, SLOT(setCurrentModelIndex(QModelIndex)));
connect(ui.tableView->selectionModel(),
SIGNAL(currentRowChanged(const QModelIndex&,
const QModelIndex&)),
this, SLOT(getImage()));
该应用程序在某种程度上按预期工作,但当我试图编辑表单中的数据时崩溃。信息太少。应用程序崩溃时会出现什么错误?什么操作系统?你有回溯吗?我在windows操作系统上。我没有回溯,但我会得到它。我会怀疑getImage函数。你能提供更多的代码吗?信号和插槽连接不是出现问题的原因,而是在更改行时执行的操作。