Results 1 to 2 of 2

Thread: XML serialization into a X3D scene

  1. #1
    Join Date
    Jan 2011
    Posts
    212
    Thanks
    24
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default XML serialization into a X3D scene

    Hello forum,

    I am creating a similar user interface as diagramscene (please see the attachment) , where the items are represented as elliptic nodes and the connectivity between nodes are established by arrows drawn between the nodes.

    Each nodes in the attached file contains corresponding information about the nodes ; for example node's property names and property values.


    I shall device and add another button into the editor. When the user press the button the scene representing the elliptic nodes connected by arrow will be serialized into the xml file which also corresponds to the X3D file.


    What kind of existing serialization process in Qt i can exploit to achieve it?

    I also need to de-serialize the X3D file and show the corresponding graphics elliptic items and the arrow connection in the scene.


    Looking forward to some key suggestion into this issue.


    Thanks
    Sajjad
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: XML serialization into a X3D scene

    Qt has quite a bit of XML classes you can use including dedicated XML streamers.
    http://doc.qt.nokia.com/latest/xml-tools.html
    ==========================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.

Similar Threads

  1. Serialization and inheritance using Qt
    By totem in forum Qt Programming
    Replies: 5
    Last Post: 16th January 2011, 15:16
  2. Class serialization
    By matulik in forum Qt Programming
    Replies: 6
    Last Post: 13th December 2010, 12:17
  3. QDataStream and serialization
    By pdoria in forum Qt Programming
    Replies: 5
    Last Post: 11th November 2009, 09:42
  4. Creating a scene from piece of another scene
    By maverick_pol in forum Qt Programming
    Replies: 3
    Last Post: 23rd August 2007, 17:51
  5. Serialization
    By donmorr in forum Qt Programming
    Replies: 4
    Last Post: 16th November 2006, 13:51

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.