QSettings weirdness

Dirk Hohndel dirk at hohndel.org
Sat Aug 23 11:38:21 PDT 2014


Qt experts...

	if (reset_settings) {
		QSettings settings;
		fprintf(stderr, "%d keys\n", settings.allKeys().length());
		foreach (QString key, settings.allKeys())
			fprintf(stderr, "had setting for key %s\n", key.toUtf8().data());
		settings.clear();
		settings.sync();
		foreach (QString key, settings.allKeys())
			fprintf(stderr, "now have setting for key %s\n", key.toUtf8().data());
		return 0;
	}


I run this in oder to reset the settings. It says I have no keys in there,
finds no keys, etc.

But if I look in ~/.config/Subsurface/Subsurface.conf there are a ton of
settings in there...

WTF?

/D


More information about the subsurface mailing list