tools/templates/pixlabel.h
author alfadur
Mon, 29 Oct 2018 23:29:03 +0300
changeset 14048 cef0c685fda8
parent 8442 535a00ca0d35
permissions -rw-r--r--
make useful stuff public

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