I have some number of images in a listview (QML). I want to drag the duplicate copy of each image present in the listview to the drop area just to show that I am dragging the image (the original image should be present there), and in the drop area I want the listview index of the same image.
Can anyone help me out? How should I drag the duplicate COPY of images or icon of that image without touching the original image in listvew?
You can create an invisible item, some template of the list item and after drag initialized assign the icon or image of the list item that should be dragged to this invisible item, then make it visible and draggable.
Some simplified example:
Online test
I use here colors instead of icons to just make in simple. In this example the dragged item is always exists but invisible. In such manner you also can create this item using Dynamic Object Creation