tools/templates/pixlabel.h
author Marcin Mielniczuk <marmistrz.dev@zoho.eu>
Tue, 03 Jul 2018 22:37:15 +0300
changeset 13440 2e5a5eee8d80
parent 8442 535a00ca0d35
permissions -rw-r--r--
Update rand and log to the latest versions

#include <QLabel>
#include <QRect>
#include <QList>
#include <QMouseEvent>

class PixLabel : public QLabel
{
    Q_OBJECT

public:

    PixLabel();
    QList<QRect> rects;

public slots:
    void AddRect();

private:
    void paintEvent(QPaintEvent * event);
    void mousePressEvent(QMouseEvent * e);
};