QGraphics scence
I have trouble using the QgraphicsScene in Qt.
When I am initializing the QGr开发者_开发问答aphicsScene 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.
精彩评论