Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] mac qt app in the dock does not respond to file drop
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] mac qt app in the dock does not respond to file drop

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pebee4art
    wrote on last edited by
    #1

    Hi,

    I want to drag a file and let it drop on my qt app icon in the dock (Mac OS X 10.6.8, Qt 4.7.3). On Windows this is working but on mac the qt app does not respond to the drop attempt although I followed the qt drag-and-drop documentation and implemented the functions <dragEnterEvent>, <dragMoveEvent>, <dropEvent> and <setAcceptDrops(true)>. I also use the QEvent::FileOpen: event. If I double click on the appropriate file my app opens correctly.

    What may be wrong?

    Thanks for your help.
    Peter

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Have a look at the "QFileOpenEvent":http://qt-project.org/doc/qt-4.8/qfileopenevent.html online documentation, I have added a little note that explains how to activate that feature.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pebee4art
        wrote on last edited by
        #3

        Hi SGaist,

        thanks a lot, that solved my problem!

        Peter

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome !

          Since it's all good, can you update your thread's title to solved ? So other forum users may know a solution has been found :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved