Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User pkarpion's Avatar
    Join Date
    Dec 2005
    Posts
    42
    I can't get my own svg into appliation icon. There is always general qt-icon. I've tried in pro-file ICON=my.svg

    When I create a new project and select the same icon-file in the creation, it works ok. I tried to find, where it is defined there, but no success.

  2. #2
    Registered User kusumk's Avatar
    Join Date
    Sep 2011
    Posts
    449
    Hi,

    In your application’s Qt project file (.pro) add the following

    symbian:
    {
    ICON = my.svg
    }
    The .svg file needs to be kept in the same directory as the .pro file in the above case.

    Make sure that the svg file created is in svg-t format.

  3. #3
    Registered User pkarpion's Avatar
    Join Date
    Dec 2005
    Posts
    42
    I tried exactly that, but doesn't work. Same svg-file works with a new project where I choose icon when creating project.

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    Should work actually. Though could be that you are experiencing the caching effect Symbian devices are using for images. Meaning that you could maybe re-boot the device, then at least all image cache's would be cleared, and could indeed be that you get the new image visible then.

  5. #5
    Registered User kusumk's Avatar
    Join Date
    Sep 2011
    Posts
    449
    Some tips -

    1. The problem could be related to qmake. If it doesn't detect the changes in .pro file and doesn't update the Makefile, it could be the reason for it. The solution for this would be to

    Delete the file Makefile and rebuild the application.


    2. After changing your application icon, you may need to restart the phone to clear the icon cache so the updated icon will be shown.

  6. #6
    Registered User pkarpion's Avatar
    Join Date
    Dec 2005
    Posts
    42
    No help. Strange is that with the new project (icon ok) I see svg-file under deployment/other_files but nothing in pro file.

  7. #7
    Registered User kusumk's Avatar
    Join Date
    Sep 2011
    Posts
    449
    Hi,

    one more important point -

    Qt 4.7.3 seems to include a default svg icon in new projects (at least in Quick App projects).

    After replacing this with your own svg file and adding the "ICON = xxx.svg" line to your .pro file, it seems to be necessary to manually delete the previously generated .mif file (located in the directory given in your app_template.pkg file) before rebuilding. Otherwise the .mif file will not be updated during the build (even if you clean all or rebuild all).

  8. #8
    Registered User pkarpion's Avatar
    Join Date
    Dec 2005
    Posts
    42
    Thanks, deleting mif and rebooting was the solution.

Similar Threads

  1. Replies: 1
    Last Post: 2011-11-12, 08:21
  2. Key icon added to application icon
    By hamsterksu in forum Mobile Java General
    Replies: 0
    Last Post: 2010-10-22, 16:59
  3. Key icon added to application icon on Nokia 6600
    By yoavgur in forum Mobile Java General
    Replies: 5
    Last Post: 2009-03-01, 15:42
  4. Application closed, but Icon remains in task list without title of icon.
    By bnvaikos in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 3
    Last Post: 2007-10-29, 12:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved