Important: Please read the Qt Code of Conduct -

Find out drop location of a QDrag

  • I have the following problem: I Create a QDrag, and the user can drop that anywhere. I need to know where the user has dropped that drag. So for example if the user drops on the desktop i need C:/Users/..../Desktop or /home/.../Desktop, to create a file there.

    Up tu now i solved this by creating a temporary file and setting the mimedata of the drag to a url to this file, hoping i would be faster creating that file than the user dropping it. But as file sizes increase, this is not a valid solution. Any idea how to solve this?

  • Did you find the solution?

Log in to reply