Rotate QGraphicsPixmapItem results in shear if resizing without keeping aspect ratio
问题 I am trying to rotate a QGraphicsPixmapItem child. For other QGraphicsItem , rotation and scaling work fine. But for a QGraphicsPixmapItem , if the size does not keep aspect ratio, instead of rotation I get shear. sample code: #include <QApplication> #include <QGraphicsView> #include <QMessageBox> #include <QGraphicsPixmapItem> #include <QFileDialog> int main(int argc, char *argv[]) { QGraphicsScene s; s.setSceneRect(-200, -200, 500, 500); QGraphicsView view(&s); view.show();