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

SVG Icons are not rendered with high DPI if QT_SCALE_FACTOR > 1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.6.0
    • GUI: High-DPI
    • None
    • Windows 10, 64-bit

    Description

      If SVG icons are used in a QAbstractItemModel for Qt::DecorationRole then the icons are rendered pixelated if QT_SCALE_FACTOR > 1 (e.g. 1.25 or 1.5). The SVG icons are rendered properly if QT_SCALE_FACTOR is 2. The attached project shows the issue. If a pixmap is used instead of a SVG image, the decoration icons are properly rendered. Start the application with the included StartHighDpiFixed_150.bat file to see the issue.

      Maybe this bug is related to QTBUG-50785

      Attachments

        1. ModelSvgDecoration.zip
          7 kB
        2. SvgTableViewDecoration.png
          SvgTableViewDecoration.png
          33 kB
        3. grid.svg
          2 kB
        4. grid.png
          grid.png
          0.2 kB
        5. qt-svg.5.15.png
          qt-svg.5.15.png
          122 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              sorvig Morten Sørvig
              ukindler Uwe Kindler
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes