C++ (Qt)QTableWidgetItem *newItem = new QTableWidgetItem; newItem->setBackground( QBrush ( Qt::red ) );// илиnewItem->setData( Qt::BackgroundRole, QColor( Qt::red ) );