class KConfig


Module kdecore
Namespace
Class KConfig
Inherits KConfigBase
\class KConfig kconfig.h

The central class of the KDE configuration data system.

Quickstart:

Get the default application config object via KGlobal.config().

Load a specific configuration file:

KConfig config( "/etc/kderc", KConfig.SimpleConfig );

Load the configuration of a specific component (taking into account possible custom dirs in KStandardDirs):

KConfig config( componentData(), "pluginrc" );

In general it is recommended to use KSharedConfig instead of creating multiple instances of KConfig to avoid the overhead of separate objects or concerns about synchronizing writes to disk even if the configuration object is updated from multiple code paths. KSharedConfig provides a set of open methods as counterparts for the KConfig constructors.

See also KSharedConfig, KConfigGroup, the techbase HOWTO on KConfig.



enums

enum details

methods