Results 1 to 5 of 5

Thread: How I Can Use LibXML2 in Qt4 Applications???

  1. #1

    Default How I Can Use LibXML2 in Qt4 Applications???

    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.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How I Can Use LibXML2 in Qt4 Applications???

    Quote Originally Posted by redhat View Post
    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.
    J-P Nurmi

  3. #3

    Default Re: How I Can Use LibXML2 in Qt4 Applications???

    Thanks to your response. But Can I Save QSettings to XML file????

  4. #4
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Thanks
    18
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How I Can Use LibXML2 in Qt4 Applications???

    You can use class for QtXML module, like QDomDocument, QDomElement, etc...
    See QDomDocument documentation for more details.

    Marcelo E. Geyer

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How I Can Use LibXML2 in Qt4 Applications???

    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".

Similar Threads

  1. How to add applications to qtopia..
    By apulu in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 19th June 2008, 14:36
  2. Replies: 27
    Last Post: 14th May 2008, 10:39
  3. Distributing multiple Qt applications?
    By gfunk in forum Qt Programming
    Replies: 5
    Last Post: 23rd August 2007, 17:41
  4. Networking between applications
    By croland in forum Qt Programming
    Replies: 3
    Last Post: 6th June 2007, 10:35

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.