QGraphicsView *m_GraphicsView;
QGraphicsScene *m_scene;
m_scene = new QGraphicsScene();
m_GraphicsView->setScene(m_scene);
QImage image_("C:\\project\\algo\\5\\swath_1_9.jpg");
m_scene->addPixmap(QPixmap::fromImage(image_));
m_GraphicsView->fitInView(m_scene->sceneRect(), Qt::KeepAspectRatio);
m_GraphicsView->show();
qt显示图片
最新推荐文章于 2024-08-19 16:49:58 发布