The point is the rotation of the pixmaps. I think there is something wrong, because the rotation of the item works fine (unfortunatly, I do need to create the rotation feeling through the pixmap rotation, item rotation is not a possibility). Maybe there is a problem when transforming from/to QImage.
Item rotation
m_pxItem->setTransformOriginPoint(rRadius, rRadius);
m_pxItem->setRotation(m_iAngle);
m_pxItem->setTransformOriginPoint(rRadius, rRadius);
m_pxItem->setRotation(m_iAngle);
To copy to clipboard, switch view to plain text mode
Pixmap rotation
QPixmap pix1
= m_pxOriginal.
transformed(QTransform
().
translate(-rRadius,
-rRadius
));
QPixmap pix2
= m_pxOriginal.
transformed(QTransform
().
rotate(m_iAn gle
));
QPixmap rotatedPix
= pix2.
transformed(QTransform
().
translate(rRadius, rRadius
));
m_pxItem->setPixmap(rotatedPix);
//Just rotating, without the traslation, shows the same bounding effect
QPixmap pix1 = m_pxOriginal.transformed(QTransform().translate(-rRadius, -rRadius));
QPixmap pix2 = m_pxOriginal.transformed(QTransform().rotate(m_iAn gle));
QPixmap rotatedPix = pix2.transformed(QTransform().translate(rRadius, rRadius));
m_pxItem->setPixmap(rotatedPix);
//Just rotating, without the traslation, shows the same bounding effect
To copy to clipboard, switch view to plain text mode
Bookmarks