#include<QApplication>
#include<QGraphicsScene>
#include<QGraphicsRectItem>
#include<QGraphicsView>
int main(int argc,char** argv){
QApplication app(argc,argv);
QGraphicsScene scene;
QGraphicsRectItem* rect = new QGraphicsRectItem(0,0,200,200);
QGraphicsEllipseItem* eclipse = new QGraphicsEllipseItem(0,0,200,200);
scene.addItem(rect);
scene.addItem(eclipse);
QGraphicsView view;
view.setScene(&scene);
view.resize(400,400);
view.show();
return app.exec();
}