Why don't you just subclass one of existing implementations of QAbstractButton like QCheckBox, QToolButton or QPushButton? You'd only need to reimplement the paint event... I guess even something like this would be enough:
Qt Code:
public: } protected: } }To copy to clipboard, switch view to plain text mode
Bookmarks