tools/templates/pixlabel.h
author nemo
Wed, 02 Sep 2015 11:55:37 -0400
changeset 11067 c632b47b8ff0
parent 8442 535a00ca0d35
permissions -rw-r--r--
Trying to get these scripts to behave properly, still WIP though.

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