Qt Coder
18th March 2009, 12:02
Hello All,
I am new to Qt programming.
I m using Qt 4.4.3
I want to rotateQPixmap image set on QLabel
I m using the below code
QPixmap pPixCenter;
pPixCenter.load(QString::fromUtf8("D:/Qt/4.4.3/examples/stylesheet/images/center.gif"));
ui.CenterArc->setPixmap(pPixCenter);
//Code for rotation
QMatrix matrix;
matrix.rotate(12);
pPixCenter = pPixCenter.xForm(matrix);
But when I compile this code it gives me error
'Class QPixmap' has no member named 'xForm'
why is it so......
I am new to Qt programming.
I m using Qt 4.4.3
I want to rotateQPixmap image set on QLabel
I m using the below code
QPixmap pPixCenter;
pPixCenter.load(QString::fromUtf8("D:/Qt/4.4.3/examples/stylesheet/images/center.gif"));
ui.CenterArc->setPixmap(pPixCenter);
//Code for rotation
QMatrix matrix;
matrix.rotate(12);
pPixCenter = pPixCenter.xForm(matrix);
But when I compile this code it gives me error
'Class QPixmap' has no member named 'xForm'
why is it so......