Quote Originally Posted by wysota View Post
I think you'll have to subclass the button (or the label) and implement the functionality you want. You can use pixmaps as you suggested, but the result will probably be not what you want.
Not only was it not what I wanted, but I couldn't get it to work that way at all.

I ended up subclassing, and drawing my own text. I'm having more difficulty though.

See, I want the button to be drawn as it normally is, so first I pass the paintEvent up to the parent QPushButton paintEvent. Then I draw my own graphical text. The problem is, I want to be able to set the text and icon the normal way, but if I do that, then the parent paintEvent draws text/icon first. What is the best way to stop the parent from drawing text/icon, and still keep the normal way of setting those properties? Does that make sense? I guess I can think of a work-around for it, like storing a temp variable somewhere, but I'm wondering if there is a cleaner way.