Results 1 to 2 of 2

Thread: How to display Icon in a .exe File in Qt

  1. #1
    Join Date
    Feb 2012
    Posts
    24
    Thanks
    4
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Post How to display Icon in a .exe File in Qt

    I am working on a Qt app where I need to display some UI and perform operation on them. When i run the application it creates a .exe in my debug/release folder. I want to put the icon in the .exe file rather than a blank icon which appears by default.

    Is their a way one can do it in .ui file or we need to do it programmatically? I am kinda sure I need to use a resource file and store the image there. I tried to search for some more details but couldn't figure out anything related to Qt. Please help

  2. #2
    Join Date
    Nov 2007
    Posts
    55
    Thanks
    1
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to display Icon in a .exe File in Qt

    just take a look at
    http://qt-project.org/doc/qt-4.8/appicon.html
    Notice that you have a search function in your documentation, further a look to the documentation should always be your first task. Qt has an excellent documentation.

Similar Threads

  1. MAC DOCK display number in icon
    By migel in forum Newbie
    Replies: 0
    Last Post: 6th September 2011, 09:58
  2. Replies: 3
    Last Post: 10th November 2010, 13:27
  3. Display a icon in QStatus bar
    By kavinsiva in forum Newbie
    Replies: 1
    Last Post: 28th May 2010, 05:35
  4. Replies: 0
    Last Post: 17th March 2010, 13:25
  5. QToolButton will not display its icon
    By JimBrown in forum Qt Programming
    Replies: 6
    Last Post: 9th March 2007, 18:54

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.