[SOLVED] mac qt app in the dock does not respond to file drop
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.
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
thanks a lot, that solved my problem!
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 :)