tools/templates/pixlabel.h
author Vittorio Giovara <vittorio.giovara@gmail.com>
Wed, 04 Nov 2015 16:19:33 +0100
branch0.9.22
changeset 11295 210650fc7182
parent 8442 535a00ca0d35
permissions -rw-r--r--
Update libav API, keeping forward and backward compatibility

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