tools/templates/pixlabel.h
author alfadur
Sat, 13 Oct 2018 23:49:23 +0300
changeset 13899 9954f9b800f5
parent 8442 535a00ca0d35
permissions -rw-r--r--
improve stability for checks

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