Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

qt rotate qimage

QImage* image = new QImage();
image->load("path/to/your/image");
int angle = 45; //how much you want to rotate in degree
QImage rotated_image = image->transformed(QTransform().rotate(angle));
Source by openclassrooms.com #
 
PREVIOUS NEXT
Tagged: #qt #rotate #qimage
ADD COMMENT
Topic
Name
9+6 =