Results 1 to 3 of 3

Thread: set Icon to .app file

  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question set Icon to .app file

    Hi All,

    I m using qt 4.2.2 on my Mac Intel.
    I have created a project name DMR and it has its .app file dmr.app
    I want that my .app file should have an Icon set by me that is any icon say app.icns.

    If any Body knows how to set the application Icon then plz tell me the procedure.

  2. #2
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: set Icon to .app file

    In your pro file add the line

    RC_FILE = app.icns

    and build your project again

  3. The following user says thank you to munna for this useful post:

    vishal.chauhan (10th January 2007)

  4. #3
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: set Icon to .app file

    The correct qmake line is:

    Qt Code:
    1. ICON = myapp.icns
    To copy to clipboard, switch view to plain text mode 

    If you also want a document icon, help files, or other resources, then you will need to provide a customized Info.plist and use an "install" target to copy them into the app bundle. See the Apple developer documentation for where things are located in a bundle and what to put in the Info.plist.

Similar Threads

  1. Draging a non-existing file to the Windows Desktop
    By klaus1111 in forum Qt Programming
    Replies: 13
    Last Post: 20th September 2007, 11:47
  2. How To Extract A File
    By deekayt in forum General Programming
    Replies: 7
    Last Post: 5th December 2006, 18:27
  3. .ui file name and classname
    By Rekha in forum Newbie
    Replies: 3
    Last Post: 12th August 2006, 01:53
  4. SQLite-DB in a qrc file
    By Lykurg in forum Qt Programming
    Replies: 5
    Last Post: 31st July 2006, 19:24
  5. Associating icon with a file type
    By munna in forum Qt Programming
    Replies: 3
    Last Post: 6th June 2006, 16:57

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.