Results 1 to 2 of 2

Thread: QSettings to/from xml

  1. #1
    Join Date
    Dec 2009
    Posts
    62
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default QSettings to/from xml

    Hi

    I have seen some posts on and off about this but I have not yet found what I am looking for.

    I have a settings xml file in an existing project and when migrating to Qt I just love QSettings, however since my current xml settings file has attributes several levels the ini file does not really correlate to my xml. Sure I can use "subkeys" in the inifile such as
    mykey/subkey/value = i

    However it does not seem to hard to implement the read and write functions in QSettings to store in xml format and I might just do that. However before going down that road, I wonder if there really is no one else who has a generic QSettings -> XML implementation to share?

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSettings to/from xml

    The .plist format on MacOS is xml. QSettings provides an implementation for that. You might want to have a look at that.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

Similar Threads

  1. how to use Qsettings
    By elDua in forum Newbie
    Replies: 1
    Last Post: 5th August 2010, 21:22
  2. QSettings.
    By afflictedd2 in forum Qt Programming
    Replies: 1
    Last Post: 5th April 2009, 19:14
  3. Migrate Qt3 QSettings to Qt4 QSettings
    By hvengel in forum Qt Programming
    Replies: 3
    Last Post: 22nd February 2008, 03:21
  4. Qsettings
    By jrideout in forum Qt Programming
    Replies: 11
    Last Post: 29th June 2006, 19:21
  5. QSettings
    By incapacitant in forum Newbie
    Replies: 13
    Last Post: 25th May 2006, 11:08

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.