Hi,

I am trying to set a GraphicsView widget that i created in my mainwindow to display a graphics scene that i previously created. I used the following code:

QGraphicsView view(&scene);
QGraphicsView* widget = new QGraphicsView();
view.setViewport(widget);
view.show();

Any suggestions on how this could work?

Thank you