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?
Printable View
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?
Code:
settings.beginGroup("groupname"); settings.remove(""); //removes the group, and all it keys settings.endGroup();