MinMin
27th March 2014, 05:53
Hi guys,
I have a number of image items (QGraphicsPixmapItem) which are arranged in rows and columns in QGraphicsScene. I want to implement something like when drag an image item, that image will be dropped at the end and the following images will move forwards (replace the moved image).
I found the similar example, but it implements in QListWidget. And I dont know how to implement it in QgraphicsScene.
http://qt-project.org/doc/qt-5/qtwidgets-draganddrop-puzzle-example.html
Does anybody have any idea how to do that?
Thanks in advance :)
I have a number of image items (QGraphicsPixmapItem) which are arranged in rows and columns in QGraphicsScene. I want to implement something like when drag an image item, that image will be dropped at the end and the following images will move forwards (replace the moved image).
I found the similar example, but it implements in QListWidget. And I dont know how to implement it in QgraphicsScene.
http://qt-project.org/doc/qt-5/qtwidgets-draganddrop-puzzle-example.html
Does anybody have any idea how to do that?
Thanks in advance :)