qt-interest@trolltech.com
[Top] [All Lists]

Simulating deprecated QSettings::resetGroup() [Qt 4.x]

Subject: Simulating deprecated QSettings::resetGroup() [Qt 4.x]
From: "Carreiro, Richard"
Date: Thu, 31 Aug 2006 14:19:13 -0400
In Qt3 QSettings had a resetGroup() method which would blast
you back to the settings "root" without you having to know
how deeply-nested in groups you were.

resetGroup() is now a Qt3 support function.  What's the Qt4
equivalent?  The docs say "use endGroup() (perhaps multiple
times)".  But what if you don't know how deep you are and just
want to get back to the "root" level?

Can you just call endGroup() in a loop until group().isEmpty()
return true?

Or is there a more convenient way to do it?  And why did TT
do away with resetGroup(), anyway?

== Rich Carreiro

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>