Qt Drag and Drop to windows explorer: How do I know the dropped destination path

前端 未结 1 1671
感动是毒
感动是毒 2021-01-03 14:12

What I\'m trying to do is to display a listview of online files, just like an FTP client lists all the files on the FTP server, and one can drag any row or rows to any local

相关标签:
1条回答
  • 2021-01-03 14:51

    For anyone who's searching for this, I might find an answer, but it ain't easy and could be platform dependent.

    After tons of (literally) search, I found a solution in FileZilla's source code, turns out to cope with such situatuation, you need:

    1. you need a shell extension to monitor (or whatever) the drag process
    2. start a normal drag and drop
    3. when mouse is dropped, just do nothing, let the whole drag and drop process finish
    4. through the shell extension, you can get the actual destination path, and just download your files there.

    for technical details, plz visit FileZilla official website

    I think this is for windows only, if anyone get the answer for other platforms, please let me know!

    0 讨论(0)
提交回复
热议问题