QSettings

#include <QtCore/QSettings>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QSettings


Overview

Public Functions Index

QSettings (const QString &organization, const QString &application=QString(), QObject *parent=0)
QSettings (Scope scope, const QString &organization, const QString &application=QString(), QObject *parent=0)
QSettings (Format format, Scope scope, const QString &organization, const QString &application=QString(), QObject *parent=0)
QSettings (const QString &fileName, Format format, QObject *parent=0)
QSettings (QObject *parent=0)
~QSettings ()
QStringListallKeys () const
QStringapplicationName () const
voidbeginGroup (const QString &prefix)
intbeginReadArray (const QString &prefix)
voidbeginWriteArray (const QString &prefix, int size=-1)
QStringListchildGroups () const
QStringListchildKeys () const
voidclear ()
boolcontains (const QString &key) const
voidendArray ()
voidendGroup ()
boolfallbacksEnabled () const
QStringfileName () const
Formatformat () const
QStringgroup () const
QTextCodec *iniCodec () const
boolisWritable () const
QStringorganizationName () const
voidremove (const QString &key)
Scopescope () const
voidsetArrayIndex (int i)
voidsetFallbacksEnabled (bool b)
voidsetIniCodec (QTextCodec *codec)
voidsetIniCodec (const char *codecName)
voidsetValue (const QString &key, const QVariant &value)
Statusstatus () const
voidsync ()
QVariantvalue (const QString &key, const QVariant &defaultValue=QVariant()) const

Static Public Functions Index

FormatdefaultFormat ()
FormatregisterFormat (const QString &extension, ReadFunc readFunc, WriteFunc writeFunc, Qt::CaseSensitivity caseSensitivity=Qt::CaseSensitive)
voidsetDefaultFormat (Format format)
voidsetPath (Format format, Scope scope, const QString &path)
voidsetSystemIniPath (const QString &dir)
voidsetUserIniPath (const QString &dir)

Protected Functions Index

virtual boolevent (QEvent *event)

Public Types

Format

NativeFormat
IniFormat
InvalidFormat 16
CustomFormat1
CustomFormat2
CustomFormat3
CustomFormat4
CustomFormat5
CustomFormat6
CustomFormat7
CustomFormat8
CustomFormat9
CustomFormat10
CustomFormat11
CustomFormat12
CustomFormat13
CustomFormat14
CustomFormat15
CustomFormat16

typedef bool(* ReadFunc

Scope

UserScope
SystemScope

typedef QMap< QString, QVariant > SettingsMap

Status

NoError 0
AccessError
FormatError

typedef bool(* WriteFunc

Public Functions

QSettings (

QSettings (

QSettings (

QSettings (

QSettings (

~QSettings ()

Destructor.

QStringList allKeys ()

QString applicationName ()

void beginGroup (

int beginReadArray (

void beginWriteArray (

QStringList childGroups ()

QStringList childKeys ()

void clear ()

bool contains (

void endArray ()

void endGroup ()

bool fallbacksEnabled ()

QString fileName ()

Format format ()

QString group ()

QTextCodec * iniCodec ()

bool isWritable ()

QString organizationName ()

void remove (

Scope scope ()

void setArrayIndex (
  • inti)

void setFallbacksEnabled (
  • boolb)

void setIniCodec (

void setIniCodec (
  • const char *codecName)

void setValue (

Status status ()

void sync ()

QVariant value (

Static Public Functions

Format defaultFormat ()

Format registerFormat (
  • const QString &extension,
  • ReadFuncreadFunc,
  • WriteFuncwriteFunc,
  • Qt::CaseSensitivitycaseSensitivity )

void setDefaultFormat (
  • Formatformat)

void setPath (
  • Formatformat,
  • Scopescope,
  • const QString &path )

void setSystemIniPath (

void setUserIniPath (

Protected Functions

virtual bool event (

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus