|
| QgsSettings (const QString &fileName, QSettings::Format format, QObject *parent=nullptr) |
| Constructs a QgsSettings object for accessing the settings stored in the file called fileName, with parent parent. More...
|
|
| QgsSettings (const QString &organization, const QString &application=QString(), QObject *parent=nullptr) |
| Constructs a QgsSettings object for accessing settings of the application called application from the organization called organization, and with parent parent. More...
|
|
| QgsSettings (QObject *parent=nullptr) |
| Constructs a QgsSettings object for accessing settings of the application and organization set previously with a call to QCoreApplication::setOrganizationName(), QCoreApplication::setOrganizationDomain(), and QCoreApplication::setApplicationName(). More...
|
|
| QgsSettings (QSettings::Format format, QSettings::Scope scope, const QString &organization, const QString &application=QString(), QObject *parent=nullptr) |
| Constructs a QgsSettings object for accessing settings of the application called application from the organization called organization, and with parent parent. More...
|
|
| QgsSettings (QSettings::Scope scope, const QString &organization, const QString &application=QString(), QObject *parent=nullptr) |
| Constructs a QgsSettings object for accessing settings of the application called application from the organization called organization, and with parent parent. More...
|
|
| ~QgsSettings () override |
|
QStringList | allKeys () const |
| Returns a list of all keys, including subkeys, that can be read using the QSettings object. More...
|
|
void | beginGroup (const QString &prefix, QgsSettings::Section section=QgsSettings::NoSection) |
| Appends prefix to the current group. More...
|
|
int | beginReadArray (const QString &prefix) |
| Adds prefix to the current group and starts reading from an array. Returns the size of the array. More...
|
|
void | beginWriteArray (const QString &prefix, int size=-1) |
| Adds prefix to the current group and starts writing an array of size size. More...
|
|
QStringList | childGroups () const |
| Returns a list of all key top-level groups that contain keys that can be read using the QSettings object. More...
|
|
QStringList | childKeys () const |
| Returns a list of all top-level keys that can be read using the QSettings object. More...
|
|
void | clear () |
| Removes all entries in the user settings. More...
|
|
bool | contains (const QString &key, QgsSettings::Section section=QgsSettings::NoSection) const |
| Returns true if there exists a setting called key; returns false otherwise. More...
|
|
void | endArray () |
| Closes the array that was started using beginReadArray() or beginWriteArray(). More...
|
|
void | endGroup () |
| Resets the group to what it was before the corresponding beginGroup() call. More...
|
|
template<class T > |
T | enumValue (const QString &key, const T &defaultValue, const Section section=NoSection) |
| Returns the setting value for a setting based on an enum. More...
|
|
QString | fileName () const |
| Returns the path where settings written using this QSettings object are stored. More...
|
|
template<class T > |
T | flagValue (const QString &key, const T &defaultValue, const Section section=NoSection) |
| Returns the setting value for a setting based on a flag. More...
|
|
QStringList | globalChildGroups () const |
| Returns a list of all key top-level groups (same as childGroups) but only for groups defined in global settings. More...
|
|
QString | group () const |
| Returns the current group. More...
|
|
QString | prefixedKey (const QString &key, QgsSettings::Section section) const |
| Returns the sanitized and prefixed key. More...
|
|
void | remove (const QString &key, QgsSettings::Section section=QgsSettings::NoSection) |
| Removes the setting key and any sub-settings of key in a section. More...
|
|
void | setArrayIndex (int i) |
| Sets the current array index to i. More...
|
|
template<class T > |
void | setEnumValue (const QString &key, const T &value, const Section section=NoSection) |
| Set the value of a setting based on an enum. More...
|
|
template<class T > |
void | setFlagValue (const QString &key, const T &value, const Section section=NoSection) |
| Set the value of a setting based on a flag. More...
|
|
void | setValue (const QString &key, const QVariant &value, QgsSettings::Section section=QgsSettings::NoSection) |
| Sets the value of setting key to value. More...
|
|
void | sync () |
| Writes any unsaved changes to permanent storage, and reloads any settings that have been changed in the meantime by another application. More...
|
|
QVariant | value (const QString &key, const QVariant &defaultValue=QVariant(), Section section=NoSection) const |
| Returns the value for setting key. More...
|
|