Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Find out drop location of a QDrag
Forum Updated to NodeBB v4.3 + New Features

Find out drop location of a QDrag

Scheduled Pinned Locked Moved Unsolved General and Desktop
drag and drop
2 Posts 2 Posters 861 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    EMC3
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tân Ngọc Đỗ
      wrote on last edited by
      #2

      Did you find the solution?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved