Unsolved I want to drag and drop the listwidget item inside the gridlayout
-
I have a List widget containing an image. I want to drag the image from list widget and drop inside the grid to display. Just see my UI view.
It would be great if someone could guide me regarding this.
-
-
@VRonin actually i am not able to understand the concept mention in that link
-
You need to subclass a QWidget (QLabel?) and reimplement
dropEvent
(https://doc.qt.io/qt-5/qwidget.html#dropEvent). the link above shows you how to extract row, column and data of the dragged item from the event -
@VRonin single thumbnail image is also a combo of an image. If I drag image it will only copy the first image not all the series of image
-
@amarism said in I want to drag and drop the listwidget item inside the gridlayout:
combo of an image
How are you saving them in the model?
-
Hi, just as a note
This sample i used for something similar
http://doc.qt.io/qt-5/qtwidgets-draganddrop-puzzle-example.html