My Project
|
#include <ClickableLabel.h>
Señales | |
void | Mouse_Pressed () |
void | Mouse_Pos () |
void | Mouse_Left () |
Métodos públicos | |
ClickableLabel (QWidget *parent=0) | |
Constructor. | |
void | mouseMoveEvent (QMouseEvent *ev) |
Funcion para anadir evento del raton (mouse) al labelWidget. | |
void | mousePressEvent (QMouseEvent *ev) |
Funcion para anadir evento del raton (mouse) al labelWidget. | |
void | leaveEvent (QEvent *) |
Funcion para anadir evento del raton (mouse) al labelWidget. | |
Atributos públicos | |
int | x |
int | y |
A class that permits a label to be clicked.
With this class we can determine de mouse position when is pressed and when the mouse left the label.