PDA

View Full Version : how to delete key in Qsettings?



phillip_Qt
9th March 2010, 09:38
Hi Everyone,
If i know the value, how to delte the key in QSettings?

high_flyer
9th March 2010, 09:43
EDIT: see Lykurgs answer below.

Lykurg
9th March 2010, 09:43
Find the key to the value using QSettings::allKeys(), a scope and QSettings::value(). Then delete that key via QSettings::remove().

phillip_Qt
9th March 2010, 09:51
Find the key to the value using QSettings::allKeys(), a scope and QSettings::value(). Then delete that key via QSettings::remove().

Thankx. i did this way its working.