Results 1 to 1 of 1

Thread: Drag 'n drop file in editor: different behaviour on Linux compared to Windows / Mac

  1. #1
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Drag 'n drop file in editor: different behaviour on Linux compared to Windows / M

    Hi,

    My application has an editor and supports drag and drop. (I use QScintilla for my editor, but the problem occurs with QTextEdit, so it doesn't seem to be widget dependent.)

    Now, if I select some text (from another application), drag it and drop it on my application's editor, then the text gets inserted (as expected). However, if I select some files (from a file manager of sorts), drag them and drop them on my application's editor, then on Windows and Mac OS X, the dropping of the files gets handled by my application (which opens the files in its editor) while on Linux, the dropping of the files results in their URL being inserted (e.g. file:///home/me/myFile).

    So, how come the behaviour on Linux is different from that on Windows and Mac OS X? Anyone, any idea?

    Cheers, Alan.


    Added after 1 42 minutes:


    Problem solved. See http://developer.qt.nokia.com/forums/viewthread/12322/.
    Last edited by agarny; 8th December 2011 at 12:21.

Similar Threads

  1. Drag and Drop file into Qt Quick window
    By marwooj in forum Qt Quick
    Replies: 0
    Last Post: 23rd June 2011, 04:04
  2. Open editor on drag/drop
    By Strongoloid in forum Newbie
    Replies: 0
    Last Post: 3rd August 2009, 17:50
  3. Replies: 2
    Last Post: 4th June 2009, 16:09
  4. Drag and Drop QTableWidget in UI file.
    By tpf80 in forum Qt Programming
    Replies: 3
    Last Post: 20th January 2009, 23:02
  5. Windows OLE drag & drop
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 12th September 2006, 09:47

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.