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

QFileDialog drive icons incorrect scaling on screen with non-integer device pixel ratio

    XMLWordPrintable

Details

    • All
    • f142bd121 (dev), 660a63d73 (6.9), df16ccaf0 (6.8)

    Description

      QFileDialog shows incorrectly rendered drive icons on screen with non-integer device pixel ratio (without pass-through scaling). The icon for "My Computer" and folder icons appear correct.

       

      To reproduce, compile and execute attached code and run under Windows (10) with a font scaling of 150%. Then select "My Computer" from the dialog's combo box and then select a drive. The combo box shows a distorted drive icon. See attached screenshot.

       

      Note that the code uses a proxy style to generate 'larger than default' icons.

      Attachments

        1. CDrive.png
          CDrive.png
          10 kB
        2. Folder.png
          Folder.png
          9 kB
        3. MyComputer.png
          MyComputer.png
          10 kB
        4. QFileDialogIncorrectDriveIcon.cpp
          2 kB
        For Gerrit Dashboard: QTBUG-133412
        # Subject Branch Project Status CR V

        Activity

          People

            chehrlic Christian Ehrlicher
            ev E Visser
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes