Thank you marcel, but just a little modification to make it work for who watch this thread:
if(pix)
{
QPixmap rotated
(pix
->size
().
width(), pix
->size
().
height());
paint.begin(&rotated);
paint.rotate(27);
paint.drawPixmap(0,0,*pix);
paint.end();
pxldest->setPixmap(rotated);
QMessageBox::information(this,
"Rotated",
"Image rotated");
}
QPainter paint;
QPixmap *pix=pxldest->pixmap();
if(pix)
{
QPixmap rotated(pix->size().width(), pix->size().height());
paint.begin(&rotated);
paint.rotate(27);
paint.drawPixmap(0,0,*pix);
paint.end();
pxldest->setPixmap(rotated);
QMessageBox::information(this,"Rotated","Image rotated");
}
To copy to clipboard, switch view to plain text mode
you just forgot the "begin" to make it be handled, did you? 
Greetings
Bookmarks