#ifndef MYBUTTON_H #define MYBUTTON_H #include namespace Ui { class MyButton; } class MyButton : public QToolButton { Q_OBJECT public: explicit MyButton(QWidget *parent = 0); ~MyButton(); void mousePressEvent (QMouseEvent * event); private: Ui::MyButton *ui; }; #endif // MYBUTTON_H