title: How to catch location/destination path
body: <p>I'm building an app on OSX using C++/Qt. The app is managing to transfer file from the app to the finder. I use the Drag and Drop. </p>
  
  <p>The app is displaying files from an android device. I can copy file from Finder to the android device without any issue.</p>
  
  <p>but I can not make it work from android device to finder. I have the DragLeaveEvent which is triggered but I still don't understand how to catch the data for the destination.</p>
  
  <p>When leaving the app, the mouse is on the desktop I should be able to git the path of where is the cursor to start a copy with the source (I already get it) and destination. </p>
  
  <p>When dragging from Finder to the app, I get the source using the mimeData.urls and I was expected to use the same when dragging from the app to the finder but it's not supported or urls is empty</p>
  
  <pre><code>void TreeView::dragLeaveEvent(QDragLeaveEvent* event)
  {
      qDebug() &lt;&lt; "On Drag Leave Event";
  
      QList&lt;QTreeWidgetItem *&gt; item;
      item = this-&gt;selectedItems();
      if (item.empty())
          return;
      else {
          QStringList ListOfFiles;
          QClipboard *clipboard = QApplication::clipboard();
          const QMimeData *mimeData = clipboard-&gt;mimeData();
  
          QStringList pathList;
          QList&lt;QUrl&gt; urlList = mimeData-&gt;urls();
  
          for (int i = 0; i &lt; urlList.size() &amp;&amp; i &lt; 32; ++i)
          {
              pathList.append(urlList.at(i).toLocalFile());
              qDebug() &lt;&lt; urlList.at(i).toLocalFile();
  
          }
  
          for (int i=0; i&lt;item.count();i++) {
              ListOfFiles.append(item[i]-&gt;text(0));
              qDebug() &lt;&lt; item[i]-&gt;text(0);
          }
      }
      event-&gt;accept();
      QTreeWidget::dragLeaveEvent(event);
  
  }
  </code></pre>
  
  <p>Any idea ?
  Thanks</p>