Following up on this answer to this question, I would like a clear, step-by-step set of instructions on how to set the application icon for a Qt application on OS X sufficient for distribution of the application via an installer and/or through the App Store.
The instructions should include how to set the four sizes of the icon, as referenced in the linked answer, above.
Please bear in mind that I have no experience in distributing OS X applications, building installers for OS X applications, or setting the icon that appears in the Finder bar for OS X applications. Rather, I am an experienced C++ programmer (mostly on Windows and Linux).
I especially seek a clear, step-by-step set of instructions.
First of all I'd like to mention that Icon Composer for XCode won't work here because it's not possible to create icns file with resolution 1024x1024 px.
To generate icns file I used iConvert Icons. The major drawback is that it's not free. To generate icns file all you need is png image with resolution 1024x1024 or more. The process is really simple so I won't cover it.
After that you'll have to include your icon in your project. To do that insert path to your icon in your Qt application's
.pro
file:You can automate icon creation by placing the following files in an icon.iconset directory:
Then run the following command:
It'll create the icons.icns that you'll reference with the ICON qmake variable.