Friday, July 13, 2012

Change default icon in Qt for Symbian




So you have finally completed your application for Symbian phones using Qt. Congrats. But when you install the app on your phone you get the default icon. You are wondering "How do I change the icon of my app?". If you don't change it you will be stuck with the default green icon with letters Qt. I have also enclosed the two icons in  SVG-Tiny format for you to download and play around. In this post you will also find a link to advices from Nokia on how to create the icons for Symbian, MeeGo and their other platforms.


Firstly, it would be great if you had the icon as soon as you start to develop a new project. When you go to File > New File or Project inside the Qt SDK the wizard will ask you if you want to change the icon. If you don't change it you will be stuck with the default one.





Usually people don't have the icon prepared in advanced. So if you want to change the icon afterwards you can. Go to your .pro file. You should already have line
symbian:TARGET.UID3 =  0xE7EE and some number. Add another line just beneath this one saying
symbian:ICON = myNewIcon.svg
You should just add your SVG-Tiny icon to the root of your project file. There should already be an default icon there called YourProjectName.svg. Of course replace YourProjectName with the name of your actual project :)
Click run and deploy your app to the phone. If on your phone you still have the default icon reboot your phone and you should be fine. This helped to me.

And here are some SVG-Tiny Icons to play along. One has letter A and other one has a letter B on it. If you don't have your own icons or if you are not sure if the reason that this doesn't work for you are the icons you can try this out with my icons. Download SVG-Tiny test icons here.

Also Nokia has tons of advices on how to create the perfect looking icons for you app. They even have the Nokia icon toolkit and a video tutorials on how to use the toolkit. Read the article Launcer Icon Basics to learn more


Sorce of this article:
http://qt-project.org/forums/viewthread/17867


1 comment:

  1. Thanks for your guide! Your phone reboot recommendation was really on the spot as well.

    ReplyDelete