QGraphicsScene *scene=new QGraphicsScene; scene->addText("Hello, world!"); scene->addRect(0,40,100,100); QGraphicsView *view=new QGraphicsView(scene); view->show();
QGraphicsScene *scene=new QGraphicsScene; scene->addText("Hello, world!"); scene->addRect(0,40,100,100); QGraphicsView *view=new QGraphicsView(scene); view->show();