You can now change AMAnimType to enable the animation through the x/y axis and alpha for example
AMAnimType:= AMTypeMaskX or AMTypeMaskAlpha
will enable movement over the X axis and alpha
#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);
};