My Project

- Página principal
- Namespaces
- Clases
- Archivos

- Lista de archivos

ClickableLabel.h
1 #ifndef CLICKABLELABEL_H
2 #define CLICKABLELABEL_H
3
4 #include <QLabel>
5 #include <QMouseEvent>
6 #include <QDebug>
7
13 class ClickableLabel : public QLabel{
14 Q_OBJECT
15 public:
16
22 explicit ClickableLabel(QWidget *parent = 0);
23
29 void mouseMoveEvent(QMouseEvent *ev);
30
36 void mousePressEvent(QMouseEvent *ev);
37
43 void leaveEvent(QEvent *);
44 int x,y;
45
46 signals:
47 void Mouse_Pressed();
48 void Mouse_Pos();
49
50
51 void Mouse_Left();
52 };
53
54 #endif // CLICKABLELABEL_H
ClickableLabel::leaveEvent
void leaveEvent(QEvent *)
Funcion para anadir evento del raton (mouse) al labelWidget.
Definition: ClickableLabel.cpp:40
ClickableLabel
Definition: ClickableLabel.h:13
ClickableLabel::mousePressEvent
void mousePressEvent(QMouseEvent *ev)
Funcion para anadir evento del raton (mouse) al labelWidget.
Definition: ClickableLabel.cpp:29
ClickableLabel::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *ev)
Funcion para anadir evento del raton (mouse) al labelWidget.
Definition: ClickableLabel.cpp:18
ClickableLabel::ClickableLabel
ClickableLabel(QWidget *parent=0)
Constructor.
Definition: ClickableLabel.cpp:8