Thank you. However, I cant still output graphics through the QGraphicsView object I previously created in my main form. When I use the following code, the QGraphicsScene is visualized through a window that is created out of the main form (and not in the Graphics window in my main form):

QGraphicsScene scene;
QGraphicsRectItem *rect = scene.addRect(QRectF(0, 0, 100, 100));

QGraphicsItem *item = scene.itemAt(50, 50);

QGraphicsView view(&scene);

view.show();


Thank you very much!