开发者

How to use QGraphicsView in Qt?

开发者 https://www.devze.com 2023-01-17 20:59 出处:网络
I need to create a view like this in Qt If I click the circle then it\'ll give a popup message like this \"You clicked 2 circle.\"

I need to create a view like this in Qt

How to use QGraphicsView in Qt?

If I click the circle then it'll give a popup message like this "You clicked 2 circle."

I need to add the circ开发者_Go百科le during run time in any location. How to implement this in Qt using QGraphicsView? Or are there any other better way to implement this?


The following page from Qt documentation can help you: http://doc.qt.io/qt-5/graphicsview.html The Drag and drop example will help you to know how deals with your QGraphicItems

Hope that helps

0

精彩评论

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