Does QSettings Group check for redundant posts?
-
Hi,
What do you mean by multiple posts ?
-
If you just want to check whether a specif key is already set, simply use:
bool QSettings::contains ( const QString & key ) constIf your key is inside a group, then either use beginGroup() before contains() or specify the key as "myGroupName/myKeyName".
Maybe you could also use QSettings::value() with an appropriate default value...
-
[quote author="MuldeR" date="1366396739"]If you just want to check whether a specif key is already set, simply use:
bool QSettings::contains ( const QString & key ) constIf your key is inside a group, then either use beginGroup() before contains() or specify the key as "myGroupName/myKeyName".
Maybe you could also use QSettings::value() with an appropriate default value...[/quote]
Oh I checked the documentation with that and saw it there. Crap, how did I not see it. Thanks for showing me though.