tools/templates/pixlabel.h
author nemo
Tue, 24 Oct 2017 18:55:19 -0400
changeset 12759 df9d9d19406a
parent 8442 535a00ca0d35
permissions -rw-r--r--
w is in pixels, so presumably this needs to be *4

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