PDA

View Full Version : How to remove a QSettings registry group



seux
24th June 2011, 10:40
Hello,
my application uses QSettings to save some states in several groups. The user has the ability to remove these keys manually. But when a group has no keys any more i want to delete it, but how can i do this?

Santosh Reddy
24th June 2011, 11:11
settings.beginGroup("groupname");
settings.remove(""); //removes the group, and all it keys
settings.endGroup();