Though now that I think about it maybe QPainter isn't the way we should draw this text. Maybe we should make a child WLabel for all WPushButtons that contains the text. That way you could style it with CSS.