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. Writing XML using QDomElement??
Forum Updated to NodeBB v4.3 + New Features

Writing XML using QDomElement??

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 512 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 Everyone,
    I am trying to write XML by using QDomElement. I have some QGraphicsitem on my scene window and by reading that QGraphicsitem from scene I am writing XML accordingly.
    Now the problem is: on the scene, in a rectangular box, I have two circles as graphicsitem and further these circles has 3 more children (for each circle item). Now, I want to create a QDomElement name "tuple" and inside of this "tuple" element one element from one circle item and other element from another circle item.... I hope you guys understand what I try to say for example,

    <tuple>
    <set-element>                          ........................
    <value>any value</value> ................................
    </set-element> ........     this belongs to one circle item
    <set-element>..........................
    <value>anyvalue </value>................
    </set-element>..............this belongs to another circle item
    </tuple>
    

    like above it must create 3 tuples element set which contact pair of element from each circle items

    Many Thanks in advance

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Since you have custom graphics item, you should add a method to them so they can generate the xml you need directly from them.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

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