Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED]Desktop icon not properly showed in release build

[SOLVED]Desktop icon not properly showed in release build

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 4.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alex206
    wrote on last edited by
    #1

    EDIT: Solved. The problem seems to be windows 7 icon cache. Changing the name to the file shows icons correctly, and rebuilding the cache does too.

    I set an application icon for my app, first a simple 32 x32 icon made with visual studio. I realized that it wasn't the proper way and then a make a good .ico file with all the sizes required by windows 7. Doing all the steps in http://developer.qt.nokia.com/doc/qt-4.8/appicon.html , the icons are all good when I build in debug mode, but when doing it in release mode the desktop icon (the one you see when your app is in the desktop or in the windows file explorer) is the first one I made, no matter how many times and different .ico files I use. I have used .ico files from other programs and result is the same: in debug build all are good shown, in release, taskbar and such is updated and looks good, but the .exe icon remains the first one. I have looked in the .res file for both versions, and icons are ok, so I don't understand from where is the release build taking the image it shows in the .exe. Any ideas?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stukdev
      wrote on last edited by
      #2

      For rebuilding the cache what do you mean?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Alex206
        wrote on last edited by
        #3

        I mean delete the cache for icons that Windows 7 automatically make. I don't know how it works exactly, but it was keeping the old icon image in the cache and not refreshing it.

        You can find the steps to "force refresh" ;) the cache here:

        http://www.sevenforums.com/tutorials/49819-icon-cache-rebuild.html

        PD. By "force refresh" I mean delete it so that Windows has to make it again with the updated icons.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved