When draggin items from a QListView, the dragged items are drawn along with the mouse cursor and drop indicator. How can I prevent this behavior and just get the drop indicator? I am dragging from huge list items into small targets, and this makes things pretty difficult to target as the drop area is hidden by the huge dragged items.
views:
26answers:
1
+1
A:
Hi, actually if i do not explicitly call drag->setPixmap() i don't have a visible dragged item (Win XP). Probably you should just call QDrag::setPixmap() with a scaled down Version of the dragged Object.
eL
2010-02-02 09:23:06
Indeed, this method is called by QAbstractItemView when a drag operation is started. Looks like I will have to override this method in order to implement the desired behavior. Thanks a lot for the pointer, this is exactly what I needed!
Gnurou
2010-02-03 01:52:23