Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.7.0
-
None
Description
QTableWidget table = new QTableWidget(10, 10) ;
table->horizontalHeaderItem(2)->setTextColor(Qt::blue); // OK
table->item(1, 1)->setBackgroundColor(Qt::blue); //OK
table->horizontalHeaderItem(2)->setBackgroundColor(Qt::red); // No effect
Attachments
Issue Links
- duplicates
-
QTBUG-31804 Setting background of QHeaderView using model's headerData() doesn't work
- Closed