Results 1 to 4 of 4

Thread: Setting executable's icon

  1. #1

    Post Setting executable's icon

    Hi all;

    How may I set executable's icon? I'm using VS2008. Have added an ico file to a qrc file and set it via "QApplication::setWindowIcon" but it doesn't effect on executable look.

    Thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Setting executable's icon

    its because setWindowIcon only affects the window. Like the names stats... See Setting the Application Icon.

  3. #3

    Default Re: Setting executable's icon

    I'm using VS2008 don't have pro files and so on, if there is way to add it properly could you please explain?

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Setting executable's icon

    From the mentioned docs:
    If you do not use qmake, the necessary steps are: first, run the rc program on the .rc file, then link your application with the resulting .res file.

Similar Threads

  1. How to set an icon to executable (.exe)
    By Naami in forum Qt Programming
    Replies: 2
    Last Post: 18th June 2010, 01:44
  2. about setting executable file icon
    By Raul in forum Qt Programming
    Replies: 5
    Last Post: 15th June 2010, 02:11
  3. Icon for executable
    By schan117 in forum Qt Programming
    Replies: 1
    Last Post: 22nd September 2009, 16:58
  4. Setting OS Specified Icon on the File?
    By vishal.chauhan in forum Qt Programming
    Replies: 4
    Last Post: 31st May 2008, 12:37
  5. Setting an icon to an Item in a QlistWidget
    By LordQt in forum Qt Programming
    Replies: 18
    Last Post: 23rd August 2007, 22:24

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.