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