Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
4.6.0
-
None
Description
Name
Mikalai Arapau
Your E-Mail Address
kolya@infoctopus.com
Product
Qt
Function
MainWindow
Version
4.6.0-beta
Platform
Windows XP
Platform details
Wrong MainWindow icon.
I specify application icon (via .rc file), it contains 4 images, all 32bpp: 16x16, 32x32, 48x48 and 256x256.
The icon for MainWindow should be 16x16, as it is with Qt 4.5.x. But, instead of that, icon of a larger size is taken and scaled down (and, of course, it looks really bad).
Compilers
MSVC
Compiler details
MSVC 2008 SP1, Windows SDK 6.1
QtCreator 1.3, jom
Subject
Wrong icon assigned to Main Window
Steps to reproduce / test case
1. Create new Qt4 GUI Application: app
2. Take an app.ico file with several images in it (16x16, 32x32, 48x48, 256x256, all 32bpp)
3. app.rc file:
IDI_ICON1 ICON DISCARDABLE "app.ico"
4. app.pro file:
win32:RC_FILE = app.rc
5. Build & Run:
Instead of nice hand-made 16x16 icon there's a scaled down icon of a larger size
More information
Attachments
Issue Links
- duplicates
-
QTBUG-19441 Qt uses wrong icon image resolution when setting window icon on Windows
- Closed