#ifndef CCHECKBOX_H #define CCHECKBOX_H #include #include class cCheckBox : public QCheckBox { Q_OBJECT public: cCheckBox(const QString &text, QWidget *parent = nullptr); cCheckBox(QWidget *parent = nullptr); protected: void enterEvent(QEvent *ev); void leaveEvent(QEvent *ev); signals: void windowEntered(); void windowLeft(); }; #endif // CCHECKBOX_H