
Originally Posted by
jscurtis
Also the same issue with the long and short application name, both in the registration resource file, there is no way to make them different. I could easily fix my issue by editing this resource file, but my changes are over written by QT?
True, there's no officially supported way of changing Symbian application caption strings (defined in .loc file) through a .pro file. See QTBUG-4850
Above bug report links to some ideas how to work around the issue, but all of them require manual editing of qmake-generated files...
Here's one hack more, using an extra makefile target and perl commands to modify the .loc file. It's not any more elegant than the rest, but at least it does things automatically.
Code:
TARGET = hello_20032457
TARGET.NAME = HelloApp
# ...
symbian: {
modify_caption.target = $${TARGET}.loc.~
modify_caption.depends = $${TARGET}.loc
modify_caption.commands = perl -i.~ -p -e \"s/$${TARGET}/$${TARGET.NAME}/g;\" $${TARGET}.loc
QMAKE_EXTRA_TARGETS += modify_caption
PRE_TARGETDEPS += $${modify_caption.target}
QMAKE_DISTCLEAN += $${modify_caption.target}
}