Svg to Qml or QGraphicsItem
-
Hello,
I would like to know if I could transform a complexe svg into a QML object or multiple QGraphicsItem objects.
In fact, I would like each item on my svg (text, circle, polygone...) to be accessible for the purpose of being able to modify (position, attribute sush as color, ...) each of these items.
Thanks in advance,
John
-
Hi and welcome to devnet,
Do you mean whether there's a module for parsing your SVG and create the components as needed ?
-
I'm not aware of a ready made translator, the QtSVG module doesn't seem implement what you need (you can check here
Maybe the QtQuick PathSVG can be a good start. The most complete SVG parser available currently is in the QtWebKit module (QtWebEngine maybe also but I can't say for sure)