📅  最后修改于: 2022-03-11 14:44:53.814000             🧑  作者: Mango
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));