Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtXML Writing?
Forum Updated to NodeBB v4.3 + New Features

QtXML Writing?

Scheduled Pinned Locked Moved Solved General and Desktop
1 Posts 1 Posters 351 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    ShrikantAmbade
    wrote on last edited by
    #1

    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>
    
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved