PDA

View Full Version : Adding stylesheet and icon to QStyleOptionButton



riarioriu3
8th August 2012, 14:12
I am using QStyleOptionButton in paint() method of my delegate implementation .
How to set stylesheet and icon for the button created by QStyleOptionButton ?

I am able to set the icon , but the icon is set , left side of that button ..

i want to set the icon and stylesheet on the top of that button ..

Thankx in advance .