QGraphicsView* ViewPath = new QGraphicsView(this);
ViewPath->setGeometry(0,0,450,600);
QGraphicsScene ScenePath;
ViewPath->setScene(&ScenePath);
QImage img_path_disp=img_path_disp.scaled(ViewPath->width(), ViewPath->height(), Qt::IgnoreAspectRatio);
QGraphicsPixmapItem *p=ScenePath.addPixmap(QPixmap::fromImage(img_path_disp));
ViewPath->fitInView(p, Qt::IgnoreAspectRatio);
ViewPath->show();