Solved QtXML Writing?
-
Hello,
I am writing XML by reading QGraphicsItem from the scene. for set-component I have circle on the scene with label "SC". I am able to write it in XML file under
<state-space>
there are multiple entry of set-component i want to write by reading multiple circle graphics item from the scene ... How to do that?? I am very much confuse how to write multiple entry and go into the depth of the QGraphics item ... One more thing is by reading next circle item which are drawn on the scene with O, U, S label. I want to create multiple entry of <set-component>.. following is the expected XML file
<state-space> <set-component> <name>U</name> <values> <set-elem> <value>u1</value> </set-elem> <set-elem> <value>u2</value> </set-elem> </values> </set-component> <set-component> <name>O</name> <values> <set-elem> <value>o1</value> </set-elem> <set-elem> <value>o2</value> </set-elem> <set-elem> <value>o3</value> </set-elem> </values> </set-component> <set-component> <name>S</name> <values> <set-elem> <value>s1</value> </set-elem> <set-elem> <value>s2</value> </set-elem> <set-elem> <value>s3</value> </set-elem> </values> </set-component>