tags:

views:

42

answers:

1

Apparently, for Cocoa applications, you're supposed to implement [[NSApp delegate] application:openFile:] or something like that to allow your application to open files double clicked in Finder.

How do you achieve this functionality using Qt, as the name of the file to be opened is not passed on the command line?

+1  A: 

QFileOpenEvent should do the trick: http://doc.trolltech.com/4.6/qfileopenevent.html Also see http://doc.trolltech.com/qq/qq18-macfeatures.html

Frank
+1 Perfect, thanks.
Jake Petroules