QModelIndex Delindex = view->currentIndex();
if (Delindex.isValid())
{
if (QMessageBox::Ok == QMessageBox::question(this, tr("提示信息"), tr("确定要删除第 ") + QString::number(Delindex.row()+1) + tr(" 行纪录?"), tr("确定"), tr("取消")) == 0)
{
if(InModel->removeRows(Delindex.row(),1)){
InModel->submitAll();
}else{
QMessageBox::critical(this, tr("提示信息"), tr("错误信息:") + InModel->lastError().text(), tr("确定"), tr("取消"));
}
}
removeRows()
返回parameter count mismatch这个错误