Results 1 to 3 of 3

Thread: Help in reading and writing xml using qt

  1. #1

    Default Help in reading and writing xml using qt

    Hi,
    I am new to Qt.
    I want to know sample running working code for reading and writing XML file using qt?
    Can you please send all header files and source files along with .pro project file?

    xml should be like generating 1,2,3,4,5 numbers..

  2. #2
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: Help in reading and writing xml using qt

    There are lot of examples with qt installation, some dedicated to xml. also you can search in the web. Any way, first of all you need to add xml to pro file: QT += xml.
    These:
    #include <QtXml>
    #include <QDomDocument>
    have to be enough to start working with xml. See their documentations there are useful hints to start.

  3. #3
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Help in reading and writing xml using qt

    Good place to start XML Examples
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. Reading and writing bytes in file
    By DiamonDogX in forum Qt Programming
    Replies: 2
    Last Post: 20th May 2009, 20:25
  2. Reading/writing QTableWidget
    By Salazaar in forum Newbie
    Replies: 15
    Last Post: 23rd June 2007, 13:20
  3. Function for reading and writing
    By merry in forum Newbie
    Replies: 2
    Last Post: 30th May 2007, 08:30
  4. serialising reading writing
    By TheKedge in forum General Programming
    Replies: 4
    Last Post: 5th April 2007, 17:17
  5. reading/writing to file
    By QiT in forum Newbie
    Replies: 2
    Last Post: 11th August 2006, 17:21

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.