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

"QSvgIconEngine::paint" doesn't scale to fractional device pixel ratio

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6, 5.7, 5.8
    • Fix Version/s: 5.6.3, 5.9.0 Beta 1
    • Component/s: SVG Support
    • Labels:
      None
    • Commits:
      810b6defac666c7652a77b5e4fd5b70a6fbe0c54 02ed4c65618b0f27b9ccb6867ab4d633612415c8

      Description

      QSvgIconEngine::paint() uses method which returns integer value, so fractional value (e.g. 1.5) is rounded down. This causes bad painting of SVG icons e.g. in QTreeWidget.
      The method which returns qreal value is available since Qt 5.6.

        Attachments

        For Gerrit Dashboard: QTBUG-59729
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            zaps166 Błażej Szczygieł
            Reporter:
            zaps166 Błażej Szczygieł
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes