Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
4.7.3
-
None
-
Qt 4.7.3 on Windows 7
Description
I followed the following instructions for setting my application icon on Windows:
http://doc.qt.nokia.com/4.7-snapshot/appicon.html
This works fairly well, I have a decent application icon in windows explorer, in the start menu, task bar, when alt+tabbing, and at the top left of my application's windows. However, it appears Qt is not using the most appropriate icon resolution when setting these various images. Specifically, I created a .ico file with images at the following resolutions:
256 x 256 (for Windows 7 and Vista)
64 x 64
48 x 48
32 x 32
16 x 16
I have included the 48x48 and lower resolution images at 4, 8, and 32 bit color depths, as per Microsoft's specifications. Unfortunately, when Qt is setting the window icon at the top left of every application window, it appears to be using the 32x32 image and scaling it down to 16x16 instead of using the 16 x 16 image I provided. I verified this by creating an .ico file where I changed the color of the icon (red, blue, orange, etc) for each resolution. As you can see, the 32x32 image is green and Qt is using that the top left. Windows Explorer on the other hand properly identifies the application has a 16 x 16 image (red) and uses that to list the application. Qt should use the nearest resolution image because scaling it down on the fly produces a blurrier image. While dealing with high resolution images scaling isn't as big a deal, but when dealing with very tiny 16x16 images, it's best to let a graphic designer perfectly design the icon. As a result of this bug Qt based apps just don't look as good as they should on Windows while on Mac, where an .icns file is employed, things look much better.
Attachments
Issue Links
- is duplicated by
-
QTBUG-10632 CLONE -Wrong icon assigned to Main Window in Qt 4.6.2
- Closed
- relates to
-
QTBUG-18680 ICO file loading fails if the file contain embedded PNG
- Closed