After a lot of searching, I'm gonna ask
I have a QTreeWidget on a dialog. The user requirement is that the background of the tree is the same color as QPalette::Window (and the palette can change, so just modifying the palette in designer won't work). I've tried tree->setBackgroundRole(QPalette::Window) (and even foreground role)... no difference.
If I modify the items (item->setBackground(QApplication:alette().window())), the item backgrounds are right... but the tree widget w/o items is still white (base).
Using qt 4.3.2 --- and ready to tear my hair out, since this seems to function in other places, just not the tree widget.
Vycke



alette().window())), the item backgrounds are right... but the tree widget w/o items is still white (base).
Reply With Quote

Bookmarks