开发者

how to drag and drop from another widget on to a QGraphicsScene

开发者 https://www.devze.com 2023-01-10 05:51 出处:网络
I need to drag from a QListWidget or something similar and drop on a QGraphicsScene, and create 开发者_如何学Pythona subclass of QGraphicsItem at the drop location.Anyone have any ideas?I\'m using Qt

I need to drag from a QListWidget or something similar and drop on a QGraphicsScene, and create 开发者_如何学Pythona subclass of QGraphicsItem at the drop location. Anyone have any ideas? I'm using Qt 4.6.3.


The Drag and Drop Puzzle example seems to do what you are looking for: https://doc.qt.io/archives/4.6/draganddrop-puzzle.html

0

精彩评论

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