Results 1 to 3 of 3

Thread: How to add icon?

  1. #1
    Join Date
    Dec 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default How to add icon?

    How to add icon

    ______________
    QT += core gui

    TARGET = eliminsekizi00
    TEMPLATE = app

    ICON = icon.svg

    TARGET.EPOCHEAPSIZE = 0x200000 0xA00000
    SOURCES += main.cpp\
    eliminsekizi.cpp

    HEADERS += eliminsekizi.h

    FORMS += eliminsekizi.ui

    CONFIG += mobility
    MOBILITY =

    symbian {
    ICON = icon.svg
    TARGET.UID3 = 0xe0123456
    # TARGET.CAPABILITY +=
    TARGET.EPOCSTACKSIZE = 0x14000
    TARGET.EPOCHEAPSIZE = 0x020000 0x800000
    LIBS += -lcone -leikcore -lavkon
    }


    RESOURCES += \
    kaynak.qrc

    OTHER_FILES +=



    _________________________________
    not

    __

  2. #2
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to add icon?

    What do you want to add the icon to ?

    As a resource to use on buttons ect. in your application, or just the application's icon like on the desktop ? For the latter, see this : Setting the application icon

    Regards,
    Marc

    Edit : sorry, didn't see I'm on the embedded section. Anyway, you should still make more clear what you want to achieve, what you have tried, and what the error is you are getting.
    Last edited by marcvanriet; 19th December 2010 at 00:08.

  3. #3
    Join Date
    Apr 2010
    Posts
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to add icon?

    Your code looks good. What is your target device?

    I have had a lot of issues with my .svg formatting (its an xml file inside). Make sure the icon is created properly (svg tiny with viewport set etc...). The application icon is the reason I never put my app on the ovi store... after 3 months of debugging why my icon wont display properly on the actual nokia n97... I gave up trying to get my app on ovi store, and now it is only useful for me to use..

    and my icon displayed properly on S60v3 phones, just not S60v5 phones... (icon distortion can be described as the verteces constructing the lines were off place and in some cases out of the viewport bounds (even though the xml numbers were inside the viewport..))...

    The only workaround I found to this issue (which I never fully implemented) is to use carbide C++ to manually create your resource file ( .mbm) to use bitmap image instead of vector.

    good luch, and please let us know how you solved this issue. I have a few apps I could put on ovi store if the icons displayed properly.

Similar Threads

  1. Replies: 0
    Last Post: 17th March 2010, 13:25
  2. Replies: 2
    Last Post: 12th October 2008, 14:42
  3. Couple of questions: main window icon + toolbar icon
    By bpackard in forum Qt Programming
    Replies: 0
    Last Post: 20th March 2008, 19:03
  4. Replies: 1
    Last Post: 17th January 2008, 10:17
  5. how to set icon for exe?
    By vishesh in forum Qt Programming
    Replies: 1
    Last Post: 10th July 2007, 22:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.