Hi,

I'm on 4.7 and am dropping data onto a subclass of standarditemmodel using dropMimeData; I can identify if I wish to reject the data, but when I do, it is gone from its original location.
I can't stop the item being dragged, as it could go to a valid location. I detect an invalid drop by examining the contents of the item's data (a stored pointer to a class; I use the class type) and that of the target.
How can I reject a drop and either leave the dragged item in place, or put it back where it was?

Many thanks in advance!