PDA

View Full Version : pathsvg examples



nwtqtcntr
5th March 2019, 16:43
Hi

I am attempting to use some svg in qml but with no success. Located some examples on the web and tried all of them but with no luck. I have included a sample of code I would to use. Thanks for your help.




PathView {
anchors.fill: parent
Path {
startX: 0; startY: 0

PathSvg { path: "L 0 200 L 200 200 z" } // green
}
}

anda_skoa
9th March 2019, 10:30
You are adding the Path object as a "child" of PathView.
You need to write into the PathView's "path" property

Cheers,
_