Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Qt 两个不同插槽上的CurrentRow已更改信号_Qt_Qt4_Signals Slots - Fatal编程技术网

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函数。你能提供更多的代码吗?信号和插槽连接不是出现问题的原因,而是在更改行时执行的操作。