Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-10632

CLONE -Wrong icon assigned to Main Window in Qt 4.6.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • 4.8.x
    • 4.6.0
    • Widgets: Main Window
    • None

      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

        1. examples_mainwindow_application_repro.zip
          0.8 kB
          Baptiste Lepilleur
        2. icon_bug_snapshot.png
          14 kB
          Baptiste Lepilleur
        3. qtbug10632.zip
          2 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            blep Baptiste Lepilleur
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes