QTableWidgetItem is a Qt class providing an item for use with the QTableWidget class.
Table items are used to hold pieces of information for table widgets. Items usually contain text, icons, or checkboxes.
The QTableWidgetItem
class is a convenience class that replaces the QTableItem
class in Qt 3. It provides an item for use with the QTableWidget
class.
Top-level items are constructed without a parent then inserted at the position specified by a pair of row and column numbers:
QTableWidgetItem *newItem = new QTableWidgetItem(tr("%1").arg(pow(row, column+1)));
tableWidget->setItem(row, column, newItem);