osx - Problems setting application icon with QT 5.3 on Mac -
i've been trying set application's icon following directions here:
http://qt-project.org/doc/qt-5/appicon.html
if understand correctly, process should simple:
create icon file (
flysightviewer.icns
) using iconutil. followed directions here: https://stackoverflow.com/a/20703594/443822.add
icon = flysightviewer.icns
.pro file.
however, when follow these steps, icon remains default qt application icon. i've tried deleting app bundle , build folder, since i've read these not rebuilt through usual process. doesn't seem resolve issue.
looking bit deeper, when run qmake qt creator, generated makefile contains several instances of flysightviewer.icns
, including line:
@$(copy_file) ../flysight-viewer-qt/src/flysightviewer.icns flysightviewer.app/contents/resources/flysightviewer.icns
the file ../flysight-viewer-qt/src/flysightviewer.icns
seems right expect be. however, when build project , inside app bundle, icon found. thing in resources
folder empty.lproj
.
so seems me icon isn't appearing expected because not being copied app bundle, have no idea why might be.
any appreciated. realize common question, none of answers i've found here seems have helped.
thanks time!
add line .pro file:
qmake_info_plist = info.plist
then create .plist , set icon name there. won't paste example .plist because it's quite large, can see how it's done right-clicking random app , selecting "show package contents".
Comments
Post a Comment