Unsolved QTreeView::palette().highlight() is not the same color as seen!
I try to find the contained brush color of the light blue used by the QTreeView while a row is selected and I cannot find it.
I tried the :
but this return another blue. The highlight is dark blue since the actual one is really pale (with darker blue oultine). Also, the highlightText is white while the actual text is black.
Anybody know how to find it? I want to use this color in my delegate.
Many thanks to all!
busybee last edited by
I don't have an answer to your question, sorry. However, for info, I reproduce this behavior only with QWindowsVistaStyle, the palette is correctly used by QCleanlooksStyle, QWindowsXPStyle, QPlastiqueStyle.
If you just want the color, then press print screen, start paint brush and use the color pickter to see RGB value.
To add to @mrjj, the styles are free to ignore the palette or certain elements of the palette.