16,818
社区成员




QImage img("lena.jpg");
rotate_image_implace(img, angle); //rotate the img with angle degrees(90, 180, 270 and so on)
graph_scene_ = new QGraphicsScene(this);
graph_scene_->addItem(graph_pixmap_ = new QGraphicsPixmapItem);
graph_view_ = new QGraphicsView(graph_scene_, this);
graph_pixmap_->setPixmap(QPixmap::fromImage(img));
graph_scene_->setSceneRect(img.rect());