Well, there is a small difference between this:
and this:ui->tableWidget->setCellWidget(1,3,pWidget1);
which could easily case a crash when you try to use the NULL pointer returned by the code above.QComboBox *myCB = qobject_cast<QComboBox*>(ui->tableWidget_2->cellWidget(row,3));
Bookmarks