[Qt-interest] Stylesheet and Backgroundrole for headerviews

wim.delvaux at adaptiveplanet.com wim.delvaux at adaptiveplanet.com
Sun Aug 23 01:33:04 CEST 2009


Hi all,

I have set up a style sheet where I define the background color of a header 
view.

This works fine.

However I now wish - for some rows - to alter the background color of that 
row's header.  

I do that by overloading headerData and return a different brush for the color 
I wish to alter.

This does not work. the color remains the same as the one in the stylesheet.

However when I do NOT use a stylesheet, then the color DOES change.  is this a 
bug ?

W



More information about the Qt-interest-old mailing list