#ifndef RADIOBUTTON_H #define RADIOBUTTON_H #include class RadioButton : public QWidget { Q_OBJECT public: explicit RadioButton(QWidget *parent = 0); ~RadioButton(); protected: void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE; void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE; void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE; }; #endif // RADIOBUTTON_H