Adding stylesheet and icon to QStyleOptionButton



  • 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 .


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.