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

QIcon::fromTheme - QIconLoaderEngine applies scaling wrongfully

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 5.15
    • 5.12.5, 5.13.0, 5.14.0, 5.14, 5.15
    • GUI: High-DPI, GUI: Menus
    • None
    • Windows 10
    • 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

            sorvig Morten Sørvig
            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