|
|
On 11.12.07 18:48:01, Stephen Collyer wrote:
> I want to use QSettings to store app. specific data but
> there are a couple of things I'm unclear about:
>
> 1. Is there a QSettings editor available that can be
> used manually to create app. specific settings, when
> an application is first installed ?
You can use any text editor to create a file that can be used with
QSettings.
> 2. Is there a specific test for an "empty" settings
> object ? I'm considering the case when an app is
> run, and creates a QSettings object before the
> settings have been stored, or if the settings have
> been deleted since they were first created. I guess
> it's possible to look at the number of keys, or for
> a specific key, but I would prefer something that
> told me explicitly that QSettings could find no
> appropriate settings.
I don't quite understand what you want here, do you want a
QSettings::isFileEmpty() or some such? If so a simple QFileInfo::size()
could help here. Else childKeys and childGroups is what you should
check I guess.
Andreas
--
You would if you could but you can't so you won't.
--
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/
|
|