PDA

View Full Version : How I Can Use LibXML2 in Qt4 Applications???



redhat
17th January 2009, 05:34
Hi!
I Have Developing A Application With Qt4 in Linux Platform.
I Need To Save And Load This Application Settings Into A XML File (Named Settings.xml).
I Need To Use LibXML2!
How I Can????

Thanks.

jpn
17th January 2009, 08:17
I Need To Save And Load This Application Settings Into A XML File (Named Settings.xml).

Did you notice QSettings?



I Need To Use LibXML2!

Take a look at qmake variable LIBS.

PS. Qt has XML support too.

redhat
17th January 2009, 09:31
Thanks to your response. But Can I Save QSettings to XML file????

estanisgeyer
17th January 2009, 12:10
You can use class for QtXML module, like QDomDocument, QDomElement, etc...
See QDomDocument (http://doc.trolltech.com/4.4/qdomdocument.html) documentation for more details.

Marcelo E. Geyer

wysota
17th January 2009, 12:11
You're asking a wrong question. It should say - "Can I use QSettings to store settings in an XML file?" and the answer is "Yes, provided you write an XML backend for QSettings".