Hi,
settings
= new QSettings("product1.xml", XmlFormat
);
settings.setValue("settings1",<value>)
// at this point the changes are unsaved! So your second process couldn't delete anything.
// call settings.sync(); explicit.
sleep(20);
settings.setValue("settings2", <value2>)
settings.sync();
settings = new QSettings("product1.xml", XmlFormat);
settings.setValue("settings1",<value>)
// at this point the changes are unsaved! So your second process couldn't delete anything.
// call settings.sync(); explicit.
sleep(20);
settings.setValue("settings2", <value2>)
settings.sync();
To copy to clipboard, switch view to plain text mode
Furthermore it is normally usual to create a QSettings object on the stack whenever it is needed. Thus it gets destroyed after the scope and calls sync automatically.
Bookmarks