PDA

View Full Version : How to not darken selected icons ?



Olivier Berten
21st January 2010, 21:12
When an item is selected, the icon gets darkened. How to suppress that behavior? For what I've tried, style sheets and palettes change everything around the icon but not the icon itself.

aamer4yu
22nd January 2010, 11:24
What are you using the icons in ??
You can try QIcon::addPixmap to set same pixmap for all states.

If you are using views, you can use delegates... and while drawing the icons, set its option to not selected.

Olivier Berten
22nd January 2010, 23:38
Thanks a lot. I wasn't looking in the right direction.