tools/templates/pixlabel.h
author unC0Rr
Thu, 22 Nov 2018 14:07:55 +0100
changeset 14296 61bc44de2b4c
parent 8442 535a00ca0d35
permissions -rw-r--r--
It was bad idea to store QByteArray referencing memory on stack

#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);
};