开发者

How to use QGraphicsView in Qt?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜