[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Applet KConfigGroup vs QSettings?
From:       "Thomas Braxton" <kde.braxton () gmail ! com>
Date:       2008-12-30 15:09:35
Message-ID: 928c3f1b0812300709m749c3e4t7cb6be51d28da3b2 () mail ! gmail ! com
[Download RAW message or body]

On Tue, Dec 30, 2008 at 4:53 AM, David Baron <d_baron@012.net.il> wrote:
> I want to save/read configuration settings for the user (rather than global
> settings).
>
> The applet class provides two KConfigGroup functions:
> config() and config( group)
>
> Where do these store their data? Global? User?
> The group name is best the applet name()? user's name?

KConfigGroup always saves it's data per-user.

config(group) is for when you want to store data to more than one
group, this function lets
you choose which group to store options to.

> Alternatively, there is the qt QSettings which places stuff in
> $HOME/.config/organization/app.config or something like that for which I might
> use organization name "plasmoid" or "plasma" and my applet name.
>
> Which is best to use for my plasmoid?
>
> (Both have isomorphic calls and the KConfigGroup probably calls QSettings or
> its parent.)

KConfigGroup has absolutely *nothing* to do with QSettings. QSettings
should probably
only be used if your program can be compiled as QT or KDE, then you
can share settings
between both the KDE & QT versions.
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic