开发者

QGraphics scence

开发者 https://www.devze.com 2023-02-10 06:58 出处:网络
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 ad

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

精彩评论

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

关注公众号