PDA

View Full Version : How can i get event when mime data dropped to another app?



ABBAPOH
28th April 2010, 09:51
Subj)
i need to know when user releases mouse when dragging files out of item view to extract these files from archive (like in winrar/7zip/ark, etc)

ABBAPOH
29th April 2010, 13:10
any thoughts?

wysota
29th April 2010, 20:44
The application where the item is dropped is basically responsible for handling the drop. Knowing that a drag that started in your application was dropped in another application is possible (when QDrag::exec() returns, you can check its return value to see if a drop occured) but it won't tell you WHERE it occured. Try dragging a zipped image and drop it on some graphics application - you will see it won't be able to handle the archive (unless it explicitly knows how to handle zipped archives).