ClickableLabel.h
#ifndef CLICKABLELABEL_H
#define CLICKABLELABEL_H
#include <QLabel>
#include <QMouseEvent>
#include <QDebug>
class ClickableLabel : public QLabel{
Q_OBJECT
public:
explicit ClickableLabel(QWidget *parent = 0);
void mouseMoveEvent(QMouseEvent *ev);
void mousePressEvent(QMouseEvent *ev);
void leaveEvent(QEvent *);
int x,y;
signals:
void Mouse_Pressed();
void Mouse_Pos();
void Mouse_Left();
};
#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