Stacked Graphs
Geometry & Aesthetics
 All Classes Functions Variables Enumerations
clickablelabel.h
1 #ifndef CLICKABLELABEL_H
2 #define CLICKABLELABEL_H
3 
4 #include <QLabel>
5 
9 class ClickableLabel : public QLabel
10 {
11  Q_OBJECT
12 
13 public:
14  explicit ClickableLabel(QWidget * parent = 0);
15  ~ClickableLabel();
16 
17 signals:
21  void clicked();
22 
23 protected:
27  void mousePressEvent (QMouseEvent * event);
28 };
29 
30 #endif // CLICKABLELABEL_H
void clicked()
Fired when mousePressEvent is detected.
Class derived from QLabel which additionally fires the clicked-signal when mousePressEvent is detecte...
Definition: clickablelabel.h:9
void mousePressEvent(QMouseEvent *event)
Is called when a mouse button is pressed while the cursor is inside the label.
Definition: clickablelabel.cpp:13