PDA

View Full Version : QSettings to/from xml



hubbobubbo
23rd November 2010, 10:10
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?

franz
23rd November 2010, 13:04
The .plist format on MacOS is xml. QSettings provides an implementation for that. You might want to have a look at that.