Hello!

Has anybody worked with QSettings to make own format of config-files?

I want to store all settings in xml, but I have a trouble:
after reading a doc I understood that I should create my own QSettings::Format
I need readFunc and writeFunc functions.
From doc:
typedef QSettings::WriteFunc
Typedef for a pointer to a function with the following signature:
bool myWriteFunc(QIODevice &device, const QSettings::SettingsMap &map);
---
typedef QSettings::SettingsMap
Typedef for QMap<QString, QVariant>.
Can anybody give me an example of QSettings::SettingsMap?

Thanks!

PS: sorry for my English, my native language is Russian ;-)