Drag&drop with custom cursor
-
Is it possible to modify drag& drop process so that I can chage pixmap and hotspot on every mouse move? Specifically I only want to allow the user to drag elements up and down, but not sideways.
-
There are the dragEnter, dragMove and dragLeave events. Here you can handle custom drag/drop handling, change the cursor etc. Whether it is possible to change the drag image, I don't know, try it out :-)
-
Changing picture is possible only before drag starting (via QDrag::setPixmap()).
-
It seems that the only way is to create another widget and move it in dragMove event. Haven't tried it yet but seems like a fine solution.