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

VectorImage: HTTP url as source does not load the svg

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.2, 6.9.0
    • SVG Support
    • None
    • 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

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

        Activity

          People

            hatemelkharashy Hatem ElKharashy
            amartin Martin Aumair
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes