And what's wrong exactly? And why can't you use QToolButton and its setIcon() method instead of subclassing?