[Interest] Saving existing QSettings

Josh Grauman jnfo-d at grauman.com
Tue Mar 18 16:52:43 CET 2025


Hi,

If I have a QSettings that uses the default settings for each platform (ie 
Windows uses the registry, etc.), is there an (easy) way to save the 
QSettings to an ini file to back it up and restore (on a new computer for 
example)? Something like this (although this doesn't work.

   QSettings set1("Company", "Program");
   set1.setValue("key", 1);

   QSettings set2("test.ini", QSettings::IniFormat);
   set2 = set1;

Josh


More information about the Interest mailing list