×

Discussion Board

Results 1 to 15 of 22

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    84

    How to set the application icon if qmake overwrites the pkg file?

    I'm developing a Qt app for S60 (3rd edition FP2) and I'd like to use my own application icon.

    I know this has been discussed elsewhere, but the documentation seems to be conflicting. I've tried...

    http://wiki.forum.nokia.com/index.ph...60_3rd_edition

    and


    http://wiki.forum.nokia.com/index.php/How_to_define_application_icon


    ...but neither works for me. I've tried creating my own SVGs and tried using the SVG file from an existing example app. I've also rebuilding from clean, restarting the phone, deleting the app and reinstalling, etc.

    mifconv seems to work fine (and, yes, I've checked to make sure I've used the right file names and paths).

    I guess the problem is that qmake is overwriting the pkg file(s). How can I set the values for the mif and mbm files (to use the bitmap example) if not in the pkg file?

    Are there definitive instructions somewhere, explaining how to set a custom application icon?

    Sam Dutton

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: How to set the application icon if qmake overwrites the pkg file?

    Whatever qmake does generate is based on instructions found in the *.pro file. Your question becomes thus what statement should be added to *.pro that inserts the needed *.mif in the pkg file.

    Until we find the answer to this question the workaround is to make a copy of the PKG file, edit it according to your needs and then call "createsis create <file>.pkg" in order to generate a self-signed package. (for advanced use cases see makesis.exe and signsis.exe)
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  3. #3
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: How to set the application icon if qmake overwrites the pkg file?

    Solution #2: add an icon to all the Qt for S60 projects by modifying bool SymbianMakefileGenerator::generatePkgFile(const QString &compiler, const QString &config) in \qmake\generators\symbian\symmake.cpp
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: How to set the application icon if qmake overwrites the pkg file?

    You can simply make changes to one of the generated package files and save it with a different name, then use the same 'createpackage' convenience script provided with the Qt for S60 releases.

    There should be a way to add the necessary files to the .pkg via the DEPLOYMENT keyword in the .pro file but I haven't had a chance to try it out yet. You could check to see if it's used in any of the examples/demos.

    Mark

  5. #5
    Regular Contributor
    Join Date
    Dec 2008
    Posts
    84

    Re: How to set the application icon if qmake overwrites the pkg file?

    Thanks for all the suggestions, but I still haven't managed to get this to work.

    This is what I've done so far...

    1. Followed the instructions for creating using bitmap icons here: http://wiki.forum.nokia.com/index.ph...plication_icon

    2. Created a copy of my pkg file, added the following and saved:

    "test.mif" -"!:\resource\apps\test_reg.mif"
    "test.mbm" -"!:\resource\apps\test_reg.mbm"

    3. Ran createpackage on the new pkg file.

    4. Deleted existing applications from my (N96) phone.

    5. Copied the new application onto the phone, having changed some text to make sure it was actually the new version.

    6. Turned off the phone and turned it on again.

    I've done all this without errors, but the icon stays with the default 'jigsaw piece'.

    Just a thought -- does it matter that the application is self-signed?

  6. #6
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: How to set the application icon if qmake overwrites the pkg file?

    Hi,

    Possibly your problem here is that the application registration file is also getting overwritten by qmake? It's certainly generated.

    ICON handling seems to be somewhat platform specific in Qt, so I expect we'll get something easy to use in a future release.

    It should be possible to hack around it in the way you're attempting though. Perhaps you'll have to create a copy of the app reg file and modify the package to install that one instead too?

    Mark

    P.S. No, self-signed is fine for changing icons.

Similar Threads

  1. Trusted Application
    By damien_a in forum Mobile Java General
    Replies: 11
    Last Post: 2012-02-17, 20:49
  2. #include in pkg file
    By davidmaxwaterman in forum Symbian C++
    Replies: 3
    Last Post: 2007-03-21, 09:54
  3. how to install an sisx application by including the file in image through iby file
    By arun_stmicro in forum Mobile Web Site Development
    Replies: 3
    Last Post: 2006-10-27, 08:52
  4. Replies: 0
    Last Post: 2006-10-16, 17:31
  5. Replies: 1
    Last Post: 2005-05-26, 14:22

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •