#ifndef CLICKLABEL_H
#define CLICKLABEL_H

#include <QLabel>
#include <QWidget>
#include <Qt>

class ClickLabel:public QLabel
{
    Q_OBJECT
public:
    explicit ClickLabel(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
    ~ClickLabel();
signals:
    void clicked();
protected:
    void mouseReleaseEvent(QMouseEvent *event);
};

#endif // CLICKLABEL_H

#ifndef CLICKLABEL_H
#define CLICKLABEL_H

#include <QLabel>
#include <QWidget>
#include <Qt>

class ClickLabel:public QLabel
{
    Q_OBJECT
public:
    explicit ClickLabel(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
    ~ClickLabel();
signals:
    void clicked();
protected:
    void mouseReleaseEvent(QMouseEvent *event);
};

#endif // CLICKLABEL_H

Use nullptr to stay Qt4 compatible.
Use nullptr to stay Qt4 compatible.
