| 123456789101112131415161718192021 |
- #ifndef CLICKLABEL_H
- #define CLICKLABEL_H
- #include <QLabel>
- #include <QWidget>
- class ClickLabel : public QLabel
- {
- Q_OBJECT
- public:
- explicit ClickLabel(QWidget *parent = 0);
- protected:
- void mouseReleaseEvent( QMouseEvent *event );
- signals:
- void clicked();
- public slots:
- private:
- QString m_str;
- };
- #endif // CLICKLABEL_H
|