You have to alocate memory to your pointer
Qt Code:
QTableWidgetItem *itab; itab->setText("X"); tableWidget->setItem(0, 0, itab);To copy to clipboard, switch view to plain text mode
It was crashing because you're setting a value to an unalolocate pointer.
Bookmarks