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

VectorImage: HTTP url as source does not load the svg

    XMLWordPrintable

Details

    • Windows

    Description

      When using the image component, it is possible to load the image via http by specifying a network address as the source property.

       

      Image {
        sourceSize: Qt.size(topLevel.sourceSize, topLevel.sourceSize)
        source: "https://upload.wikimedia.org/wikipedia/commons/4/42/Love_Heart_SVG.svg"
      } 

      With VectorImage this does not work:

      VectorImage {
        width: topLevel.sourceSize
        height: topLevel.sourceSize
        preferredRendererType: VectorImage.CurveRenderer
        source: "https://upload.wikimedia.org/wikipedia/commons/4/42/Love_Heart_SVG.svg"
      } 

      When setting an invalid http URL, we do not receive an error message in the console, i.e. the network sources are apparently ignored.

      Nothing is mentioned in the help for VectorImage source.

      The attached project is the VectorImage example with http url as source.

       

       

      Attachments

        1. bug_vectorimage.zip
          88 kB
          Martin Aumair

        Issue Links

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

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              amartin Martin Aumair
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes