How to open a specific file with my QT application on Mac when I double-click the file?

I see no way to open a specific file format that Qt can open automatically (when I double-click the file). Please let me know how to do this. Thanks!

+2
source share
1 answer

You need to configure your information properties list ( Info.plist) file in your application bundle to identify files that can be opened by your application. See http://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Introduction/Introduction.html

, CFBundleDocumentTypes: , ( , .. ).

, , finder plist. .

QApplication QEvent:: FileOpen. , , : http://doc.qt.nokia.com/qq/qq18-macfeatures.html

+2

Source: https://habr.com/ru/post/1613884/


All Articles