I want to rotate a qpixmap 90 and place it at the same qlabel. What should I do?
to rotate a QPixmap, you have to call transform on it
that will return a rotated Pixmap, the original is unchanged.
Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121
Q: What's that?
A: It's blue light.
Q: What does it do?
A: It turns blue.
Use Transformed function
QPixmap p2 = p1.transformed(QTransform().rotate(90));
@Computer Science Student - Brazil
Web Developer and Researcher
“Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing
Thanks for the help!!!