How to rotate an image 90 clockwise?
Solved
General and Desktop
-
I want to rotate a qpixmap 90 and place it at the same qlabel. What should I do?
-
hi @MasterBlade
to rotate a QPixmap, you have to call transform on it
that will return a rotated Pixmap, the original is unchanged. -
Use Transformed function
QPixmap p1("URL"); QPixmap p2 = p1.transformed(QTransform().rotate(90)); label->setPixmap(p2);
-
Thanks for the help!!!