📜  qt rotate qimage - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:53.814000             🧑  作者: Mango

代码示例1
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));