saravanan
saravanan

Reputation: 269

How to use QGraphicsView in Qt?

I need to create a view like this in Qt

QGraphicsView

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

Answers (1)

Patrice Bernassola
Patrice Bernassola

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

Related Questions