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 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
加载中,请稍侯......
精彩评论