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

QIcon::fromTheme - QIconLoaderEngine applies scaling wrongfully

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.12.5, 5.13.0, 5.14.0, 5.14, 5.15
    • Fix Version/s: 5.15
    • Component/s: GUI: High-DPI, GUI: Menus
    • Labels:
      None
    • Environment:
      Windows 10
    • Platform/s:
      Windows

      Description

      Using QIcon::fromTheme with svgs calls the virtual_hook of QIconLoaderEngine before it calls the QSvgIconEngine one.

      The applied scaling in the QIconLoaderEngine leads to pixelated icons.

      In contrast, setting the Icon via QIcon::addFile creates the QSvgIconEngine directly without extra scaling.

       

      I attached a minimal working example which shows the issue.

       

        Attachments

        1. crisp.PNG
          crisp.PNG
          7 kB
        2. main.cpp
          0.9 kB
        3. pixelated.PNG
          pixelated.PNG
          6 kB
        4. spiral.svg
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sorvig Morten Sørvig
            Reporter:
            pklaffert Philipp Klaffert
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes