Hi,
I asked this question before but probably didn't stir attention, so I ask again. Could anyone show me why I cannot set the background color of a QTreeWidget header column? I can do it for the foreground but couldn't get it done with the background. Here is what I did:
QTreeWidgetItem *header = myTree->header();
header->setBackground(2, Qt::red); // <<== this didn't work
header->setForeground(2, Qt::green); // <<== this worked!
Thank you so much for your help.
Bookmarks