Results 1 to 2 of 2

Thread: Dragging files from desktop

  1. #1
    Join Date
    Jun 2019
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Dragging files from desktop

    Hello, Im starting with qt and I have no idea how to handle this:

    I want to enable user to drag files from desktop, folders, etc. into my program, then create folder and drop all of those files there.

  2. #2
    Join Date
    Jul 2008
    Posts
    405
    Thanks
    9
    Thanked 52 Times in 50 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Dragging files from desktop

    Hi, you can overload QWidget::dropEvent() to catch those files, and then get the names using QDropEvent::mimeData()->urls().

    Ginsengelf

Similar Threads

  1. Replies: 5
    Last Post: 31st January 2009, 07:36
  2. dragging
    By mickey in forum Newbie
    Replies: 1
    Last Post: 25th July 2006, 14:05
  3. Replies: 11
    Last Post: 4th July 2006, 15:09
  4. MIME and .desktop files in KDE
    By nupul in forum KDE Forum
    Replies: 4
    Last Post: 14th April 2006, 16:30
  5. dragging
    By mickey in forum Newbie
    Replies: 5
    Last Post: 11th March 2006, 00:26

Tags for this Thread

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.