[SOLVED] QSettings: Remove entire group from ini file
-
Is there a way to remove an entire group from an inifile?
I know if you use remove() with a blank string "" you remove all keys in the group, but correct me if I am wrong, I don't believe it removes the group name...
Anyone have an idea in how I could do this other than parsing the file?
-
The first example of "QSettings::remove() ":http://doc.qt.nokia.com/4.7/qsettings.html#remove is exactly what you want.
-
ahh I see. I was a little confused of what they were trying to do.
Alls I would need to do is
@
inifile->remove(groupname);
@Ill try it out, thank you!
Edit: Its tested and works great, thank you for your help :)