PDA

View Full Version : QtoolButton icon change on focus



Charvi
30th August 2012, 09:33
Hi,

i have set different icons on the four tool buttons in the toolbar i used in my app. I achieved this using the setIcon() property of the toolbutton class. But now i want to change the icon when the tool button is focused. Again i have different on-focus images for all the four tool buttons. How do I achieve this?

I tried using the CSS and <toolbutton_objectname>:focus {image: url("...");} as well as <toolbutton_objectname>:focus {border-image: url("...");} to change it on focus but it did not work.

- Charvi

Charvi
30th August 2012, 14:00
Bump .....