ishowlabel.h
440 Bytes
#ifndef ISHOWLABEL_H
#define ISHOWLABEL_H
#include <QLabel>
class IShowLabel : public QLabel
{
Q_OBJECT
public:
explicit IShowLabel(QWidget *parent = 0);
protected:
void enterEvent(QEvent *);
void leaveEvent(QEvent *);
void mousePressEvent(QMouseEvent *ev);
signals:
void mouseIn();
void mouseOut();
void mousePress();
private:
bool isMousein;
public slots:
};
#endif // ISHOWLABEL_H