1

I have qt application which icon located in my Desktop and in info.plist write that path. Something like this:

 <key>CFBundleIconFile</key>
 <string>/Users/test/Desktop/icon.icns</string>

It works perfect in Mac os x 10.8.5. But after upgrading to 10.9 it does not work anymore. When I put icon on app package and write in info.plist such

 <key>CFBundleIconFile</key>
 <string>icon.icns</string>

it works again. Someone know why this happen?

QT version: 4.8.4

Thanks.

4

2 回答 2

0

I did it this way: I created soft link of icon (where it should be located) and put it on a package. During dmg installation I put a real icon instead of the link.

I do not know how, but it works. :))))

于 2014-06-25T08:39:26.333 回答
0

我不确定您为什么会在这里看到这个问题,但是对于 OS X 上的 Qt,您可以在 Qt .pro 项目文件中定义图标,它适用于 OSX 10.8 和 10.9。

因此,您可以将其添加到您的 .pro

ICON = /Users/test/Desktop/icon.icns
于 2013-11-11T16:06:41.483 回答