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));