Carbide / Symbian C ++ - Change application icon

I am using Carbide (just upgraded to 2.0) to develop the S60 3rd Edition application.

I would like to know the easiest way to change the icon (the application icon in the device menu and the icon in the upper left corner of the main window), because I need to skin my application in as many ways as possible.

All my attempts using .mif files have so far failed. I have a 44x44.svg icon that I made using Illustrator, can someone please help me in the right direction?

Thanks!

+4
source share
4 answers

To change the application icon when the application starts (in the status bar):

CEikStatusPane* sp=iEikonEnv->AppUiFactory()->StatusPane(); CAknContextPane* cp=(CAknContextPane *)sp->ControlL(TUid::Uid(EEikStatusPaneUidContext)); _LIT(KContextBitMapFile, "my_bitmap_file.mbm"); CFbsBitmap* bitmap = iEikonEnv->CreateBitmapL(KContextBitMapFile, EMbmBitmap); CleanupStack::PushL(bitmap); CFbsBitmap* bitmapmask = iEikonEnv->CreateBitmapL(KContextBitMapFile, EMbmBitmapMask); CleanupStack::PushL(bitmapmask); cp->SetPicture(bitmap, bitmapmask); CleanupStack::Pop(); // bitmapmask CleanupStack::Pop(); // bitmap DrawNow(); 

I do not know about the possibility of changing the application icon in the menu list programmatically, except for reinstalling the application with another mif file.

+3
source

If you want to change the icon in your SIS file, and then reinstall it on the device, you may need to reboot the device after installation - the application icon is in the Symbian cache and is not updated.

+1
source

With the latest QMake and Qt SDK (4.6.2) you do not need to create any .mif file yourself. The SVG file will work.

For more detailed instructions, see How to set the icon and title of a Qt application on the Symbian S60 .

Although the article uses Qt Creator, if you use QMake, then this is the same.

0
source

All Articles