[Qt-interest] Launch Application when File is dropped on Icon
John Weeks
john at wavemetrics.com
Thu Dec 9 22:25:39 CET 2010
On Dec 9, 2010, at 1:10 PM, Michael Jackson wrote:
> I have been wading through the documentation and google trying to figure out
> what I need to implement in order to have my Qt application launch when a
> file is dragged onto the application Icon. This is on OS X 10.5 with Qt
> built against Cocoa. I have written the appropriate plist file so that the
> bundle knows to accept file drops with certain extensions. The rest seems a
> mystery to me. I tried looking at the "Designer" source code but that is a
> lot of code to wade through when I don't really know what to look for.
> Apple events maybe?
>
> Any help or pushes in the right direction is much appreciated.
>
> Mike Jackson
> Www.bluequartz.net
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
Look at QEvent, specifically QEvent::FileOpen and QFileOpenEvent.
Regards,
John Weeks
WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
email support at WaveMetrics.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101209/3f4ee5b2/attachment.html
More information about the Qt-interest-old
mailing list