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

SVG for Image element does not render with smooth filtering

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.5.1
    • Quick: 2D Renderer
    • None
    • Linux x86_64
    • 3a22766e8c4ea39836f197552e92b3cc78e77f62

    Description

      Using QMLSCENE_DEVICE=softwarecontext with an Image element that has an SVG source results in an image that is not smoothly filtered even when smooth is explicitly set to true.

      import QtQuick 2.1
      
      Image {
          width: 512
          height: 512
          sourceSize.width: 64
          sourceSize.height: 64
          source: "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/aa.svg"
          smooth: true
      }
      

      However if you set smooth to false, the image appears to be smoothly filtered:

      import QtQuick 2.1
      
      Image {
          width: 512
          height: 512
          sourceSize.width: 64
          sourceSize.height: 64
          source: "https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/aa.svg"
          smooth: false
      }
      

      So it seems the smooth property has the opposite of the intended effect when using the 2D renderer.

      Attachments

        1. smooth-false.png
          smooth-false.png
          76 kB
        2. smooth-true.png
          smooth-true.png
          6 kB
        For Gerrit Dashboard: QTBUG-51122
        # Subject Branch Project Status CR V

        Activity

          People

            janichol Andy Nichols
            net147 Jonathan Liu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes