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

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

XMLWordPrintable

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

      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

        1. grid.png
          grid.png
          0.2 kB
        2. grid.svg
          2 kB
        3. ModelSvgDecoration.zip
          7 kB
        4. qt-svg.5.15.png
          qt-svg.5.15.png
          122 kB
        5. SvgTableViewDecoration.png
          SvgTableViewDecoration.png
          33 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes