I have trouble using the QgraphicsScene in Qt.
When I am initializing the QGraphicsScene in the main.cpp i am able to use that. But when I am try to add that to an Widget & then add that to the main window its not working, I am not able to view anything. What is the problem?
You should put the QGraphicsScene in a QGraphicsView. Then put the QGraphicsView in your widget.