PDA

View Full Version : Painter rotation origin



alizadeh91
10th March 2012, 06:17
I've drawn a pixmap by QPainter and i want to rotate it relative to a specific point. How can i change its rotation origin?

high_flyer
10th March 2012, 13:14
You translate it to the rotation point, rotate, and translate back to the original point.
See an example here:
http://qt-project.org/doc/qt-4.8/painting-transformations.html