C++ (Qt)void mainWnd::showGraph(){ QGraphicsScene scene; scene.addText("simple text"); graphicsView->setScene(&scene); graphicsView->show();}