开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜