Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.8.2
-
None
Description
Can be reproduced with the attached example project (RotateExample.zip).
void MainWindow::paintEvent(QPaintEvent *) { QPainter paint(this); QTransform transform; transform.rotate(180.0); // test with 180.0 degrees and then with 180.01 degrees if ( transform.isRotating() ) { qDebug() << "isRotating():" << transform.isRotating(); } else { qDebug() << "isRotating():" << transform.isRotating(); } paint.drawPixmap(0,0, QPixmap::fromImage(QImage(QString(":/example.jpg")).transformed(transform))); }
In the example the picture is rotated like expected but the value for isRotating() is wrong with 180 degrees.