PDA

View Full Version : painter->fillRect(option.rect, palette.Window); Default bg app color



migel
28th August 2011, 18:27
Any idea how to make bg color of selected items in QtreeView in delegate ?
I want actually not background at all for selected items or hovered.

painter->fillRect(option.rect, palette.Window);

this does not work
thanls

Lykurg
28th August 2011, 22:52
Hi, check option.state if it is QStyle::State_Selected