tools/templates/pixlabel.h
author alfadur
Wed, 10 Oct 2018 23:54:57 +0300
changeset 13894 7984ed53ac3b
parent 8442 535a00ca0d35
permissions -rw-r--r--
forgot a line

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