Hello all
I m using Qt 4.4.3
In my application I need to rotate as well as move a QPixmap vertically up ...
I m using below code
pPixCenter.
load(QString::fromUtf8("Images/BG.png"));
i++;
matrix.rotate(i);
matrix.translate(220,48-i);
// (220,48) are original Coordinates of my Qlabel on which I have set this QPixmap
CenterArc.setPixmap(pPixCenter.transformed(matrix));
QLabel CenterArc;
QPixmap pPixCenter;
QMatrix matrix;
pPixCenter.load(QString::fromUtf8("Images/BG.png"));
i++;
matrix.rotate(i);
matrix.translate(220,48-i);
// (220,48) are original Coordinates of my Qlabel on which I have set this QPixmap
CenterArc.setPixmap(pPixCenter.transformed(matrix));
To copy to clipboard, switch view to plain text mode
The QPixmap is rotating ,but its not moving vertically up i.e. its not transforming
Please Help..
Bookmarks