As described in the Qt-Documentation I have created my icon file with the icon-composer. Then I have inserted in my .pro-file the following line.
ICON = 3D_Modell.icns
While compiling I get the following error:
No rule to make target `../3D', needed by `3D_Modell.app/Contents/Resources/3D_Modell.icns'
Where is the Contents/Resources folder? Where exactly do I put the icns-file. I have put it into the folder where my project and all cpp and h files lie.
All we have in our
.pro
file is:The icon is in the same directory as the
.pro
file. No manual steps are necessary.Sounds like an issue with the icon name. Try Modell.icns instead.
The instructions suggest you can add the icon manually:
To get access to your application bundle from the finder, right-click on your application and select 'show package contents' from the context menu. This will open a new finder window from which you can navigate to
/Contents/Resources/
.Hope this helps.
EDIT:
The PropertyListEditor utility is in
Developer/Applications/Utilities/
. You can use it to "open" your application bundle, and edit the plist (located in the bundle's/Contents/
folder). TheCFBundleIconFile
item is helpfully calledIcon File
in the editor, but if you select View > Show Raw Keys/Values you can see the actual property names.