tools/templates/pixlabel.h
author alfadur
Wed, 27 Jun 2018 17:58:33 +0300
changeset 13431 f091f69d59e4
parent 8442 535a00ca0d35
permissions -rw-r--r--
Additional round cleanup

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