I am unable to display the view in Qt.I am trying to display the view using the below code.Nothing is getting displayed.
QGraphicsScene scene;
scene.addText("This is world of qt prog");
QGraphicsView view(&scene);
view.show();
What could be the reason for this.
Information on this would be helpful.




