Reputation: 269
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 circle during run time in any location. How to implement this in Qt using QGraphicsView
? Or are there any other better way to implement this?
Upvotes: 2
Views: 12054
Reputation: 14416
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
Upvotes: 2