QPainter::rotate() used (0,0) as the rotation anchor. If you want to rotate around the center of the rectange than you have to first translate into the center, then rotate.
resetTransform() when you're done.
Alternatively you can prepare a QTransform object that contains those two transformations, set it before drawing the image.
Cheers,
_
Bookmarks