hi,
I have created QGraphicsSVgObject using svg file name.
Once the object is created we no longer required physical file.
But is there any way to get this svg data from the available QGraphicsSvgItem?
Thanks in advance.
Regards,
~Sanjay
hi,
I have created QGraphicsSVgObject using svg file name.
Once the object is created we no longer required physical file.
But is there any way to get this svg data from the available QGraphicsSvgItem?
Thanks in advance.
Regards,
~Sanjay
What information do you need from the object?
You can access the it through:
QGraphicsSVgObject::renderer()
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
i need svg file contents from which the svg object was created.
I was thinking that either QGraphicsSVgItem or QSvgRenderer might have some interface which gives us svg file data.
But i could not find anything.
You can load it with QFile in to a QString, and use that.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
ok. Thanks a lot for your replies.
But there is no way to obtain the actual xml data from QGraphicsSVgItem or QSVGRenderer.
I need the same thing, access the svg data trough QGraphicsSvgItem instead directly.
Bookmarks