Results 1 to 4 of 4

Thread: Drag & Drop: delayed file delivery (Win & Mac)

  1. #1
    Join Date
    Apr 2006
    Location
    Minsk, Belarus
    Posts
    33
    Thanks
    2
    Thanked 6 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Drag & Drop: delayed file delivery (Win & Mac)

    Hi,

    The usual way to copy/move file from my application onto desktop is setting the drag type to “text/uri-list” and passing the filename. But, I need to be able to create file for copy/move at the moment the object is dropped

    This seems to be non-trivial drag-and-drop functionality but at least MS Word knows how to do this:

    Open a document in MS Word on Windows, making sure that you still see a
    portion of your desktop. Select a scrap of text, and drag it over the desktop.
    The moment you release the mouse button, you see/hear hard disk activity and a
    new file is created containing the scrap of text you just dragged.
    Apparently Word waits until the drag event is accepted at the other end, and
    only then produces the file to be dropped.


    So, the questions are:

    1) Does this "delayed delivery" mechanism exist on Mac as well
    2) Does Qt provide any methods to implement such behavior

    P.S. I found the topic devoted to the same problem:

    http://www.qtcentre.org/forum/f-qt-p...highlight=drop

    But it seems that no final solution was found there. Did something changed in Qt from that time which would allow me to implement such fuctionality?

    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Drag & Drop: delayed file delivery (Win & Mac)

    I don't think anything changed in that regard. You can report a suggestion to Trolltech's task-tracker though.

  3. #3
    Join Date
    Apr 2006
    Location
    Minsk, Belarus
    Posts
    33
    Thanks
    2
    Thanked 6 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Drag & Drop: delayed file delivery (Win & Mac)

    Quote Originally Posted by wysota View Post
    I don't think anything changed in that regard. You can report a suggestion to Trolltech's task-tracker though.
    Actually my email with the same question has just gone to Trolls support. Will wait for the answer...

  4. #4
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Drag & Drop: delayed file delivery (Win & Mac)

    I posted a suggestion in the other thread.

Similar Threads

  1. Strange behavior with Drag and Drop (not always drops)
    By Mona Shokrof in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2007, 19:00
  2. Remote file list Drop to desktop
    By patrik08 in forum Qt Programming
    Replies: 3
    Last Post: 10th February 2007, 00:16
  3. Drag and Drop
    By allensr in forum Qt Programming
    Replies: 1
    Last Post: 11th December 2006, 21:50
  4. Replies: 7
    Last Post: 8th September 2006, 17:19
  5. Drag and drop revisited
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 30th June 2006, 17:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.