You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
383 B
C++

#ifndef MYCHECKBOX_H
#define MYCHECKBOX_H
#include <QCheckBox>
class MyCheckBox : public QCheckBox {
Q_OBJECT
public:
explicit MyCheckBox(QWidget *parent = 0);
protected:
void mousePressEvent(QMouseEvent *e);
void mouseReleaseEvent(QMouseEvent *e);
void mouseMoveEvent(QMouseEvent *);
signals:
public slots:
private:
QObject* ptr;
};
#endif // MYCHECKBOX_H