Am 21.07.2012, 15:51 Uhr, schrieb Thomas Gahr <[email protected]>:

(And no, abusing and altering the shape for the LinkAction cursor
won't work in that case either ;-)
Yeah, thinking about that idea makes shrug, though I give myself half a
credit for creativity ;)

There /is/ a "legal" way abusing the LinkAction to display a normal arrow cursor from the drag source, that is setting a pixmap of the cursor as pixmap cursor for that DropAction on the executing QDrag instance.

Issues:
a) you have to initiate the drag from the treeview yourself (c'n'p treeview code) b) you need to render the cursor into a pixmap - that's platform dependent and /me only knows how to do that on X11 ;-) Also i think it's not possible to have additional content (mime icons) pixmaps this way (so you'd have to render them into the pixmap as well) and...
c) you still abuse the DropAction

Cheers,
Thomas

Reply via email to