Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi, how set text background color in a table cells?
@bogdann tableWidget->setItem(row, column, new QTableWidgetItem); tableWidget->item(row, column)->setBackground(Qt::red);
@Taz742 Me need QTextTable, not QTableWidget
Hi bogdann,
Try this :
QTextTableCell cell = table->cellAt(2, 3); QTextCharFormat format = cell.format(); format.setBackground(Qt.blue); cell.setFormat(format);
Eddy