I have a Simple QML project working with SVG files.
here i can load image.svg from qrc resource properly.
Image {
id: svg
source: "svg/image.svg"
x: 0
y: header.height
fillMode: Image.PreserveAspectFit
}
I want to know is that possible to assign a DOM SVG as String to Image.source ?
the String like this:
<svg version="1.1" id="svg2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1147.592px" height="1397.27px" viewBox="0 0 1147.592 1397.27" enable-background="new 0 0 1147.592 1397.27" xml:space="preserve"><polygon fill="none" stroke="#010101" stroke-miterlimit="10" points="839.432,179.454 839.432,190.151
852.657,189.897 852.657,180.621 "/></svg>