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