Results 1 to 6 of 6

Thread: How to set icon for the exe in debug and release folder using qt?

  1. #1
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default How to set icon for the exe in debug and release folder using qt?

    How to set icon for the exe in debug and release folder using qt?
    I have added the resourcefile and made the following change.
    Qt Code:
    1. app.setWindowIcon(QIcon(QString(":/images/ocz_32x32.bmp")));
    To copy to clipboard, switch view to plain text mode 

    I have tried this, but while executing the application , i can see the icon on the top left corner of the window. I would like to see the icon in the debug folder and release folder as well. How to set icon for the exe.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to set icon for the exe in debug and release folder using qt?

    After 240 posts you still haven't worked out that Qt Assistant should be the first place you look for answers.
    Open Qt Assistant, and search for "application icon" in the index.

  3. #3
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to set icon for the exe in debug and release folder using qt?

    I have tried that method from Qt assistant. Setting the application icon . Again the same result..

  4. #4
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to set icon for the exe in debug and release folder using qt?

    I think you mean the icon of the executable file itself. Go through this link.

  5. #5
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to set icon for the exe in debug and release folder using qt?

    yes. the icon of the executable. I have tried with the above method. It doesnt work.

  6. #6
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to set icon for the exe in debug and release folder using qt?

    you are using bmp image. This is platform dependent, assigning icon to .exe files. For windows, it has to be ico file. And the functionality provided in the link is NOT broken. I can vouch for that. Please go through it a bit more carefully

Similar Threads

  1. Problem with .exe file in debug folder?
    By pratik041 in forum Installation and Deployment
    Replies: 2
    Last Post: 7th December 2011, 07:01
  2. Replies: 0
    Last Post: 13th October 2010, 04:27
  3. Replies: 0
    Last Post: 17th March 2010, 13:25
  4. Release folder - 1 .exe file only
    By Swankee in forum Qt Tools
    Replies: 6
    Last Post: 21st December 2009, 22:43
  5. Debug and Release
    By paranoid_android in forum Qt Programming
    Replies: 5
    Last Post: 18th November 2006, 13:58

Tags for this Thread

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.