I use this statement to invalidate the value of a QSettings @mySettings.value ("code"). Clear ();@
But when I do @if (! mySettings.value ("code"). IsValid ())@ it returns true
i think you have to call sync() in between. that forces the settings to be written on disk. and you call 2 different setting values that might also be the problem :)