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

[REG 5.13-5.14] Some SVG images are not drawn when the source size is set

    XMLWordPrintable

Details

    • All
    • c3ba57620c2c40d285004af2e1809e581e6bb7e7 (qt/qtsvg/5.14.0)

    Description

      Some svg images are not drawn when the Image sourceSize is set. The attached example also includes a custom QQuickImageProvider for testing purpose.

      The attached example code works for most svg but some fail:

      property string imgName: "br.svg"  // fails
      property string imgName: "de.svg"  //works
      
      Image {
                  source: "qrc:/flags/" + col.imgName
                  width: 100
                  height: 100
                  sourceSize: Qt.size(100, 100) // comment this out and all start to work
      }
      

      The problem occurs since Qt 5.14. Qt 5.13.1 works fine.

      Attachments

        1. SvgProblemWidgets.zip
          4 kB
        2. svgtest.zip
          1.02 MB

        Issue Links

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

          Activity

            People

              w00t Robin Burchell
              DanielSt Peter Staab
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes