PersistentSettingsWriter Class | Extending Qt Creator Manual

Extending Qt Creator Manual | PersistentSettingsWriter

Extending Qt Creator Manual 4.6.0

# PersistentSettingsWriter Class

(Utils::PersistentSettingsWriter)

The PersistentSettingsWriter class serializes a QVariantMap of arbitrary, nested data structures to an XML file. More...

Header: | #include <PersistentSettingsWriter>

- List of all members, including inherited members

## Public Functions

| PersistentSettingsWriter(const FileName &fileName, const QString &docType)
| ~PersistentSettingsWriter()
FileName | fileName() const
bool | save(const QVariantMap &data, QString *errorString) const
bool | save(const QVariantMap &data, QWidget *parent) const

## Detailed Description

The PersistentSettingsWriter class serializes a QVariantMap of arbitrary, nested data structures to an XML file.

See also Utils::PersistentSettingsReader.

## Member Function Documentation

### PersistentSettingsWriter::PersistentSettingsWriter(const FileName &fileName, const QString &docType)

Default constructs an instance of PersistentSettingsWriter.

### PersistentSettingsWriter::~PersistentSettingsWriter()

Destroys the instance of PersistentSettingsWriter.

### FileName PersistentSettingsWriter::fileName() const

### bool PersistentSettingsWriter::save(const QVariantMap &data, QString *errorString) const

### bool PersistentSettingsWriter::save(const QVariantMap &data, QWidget *parent) const