Class: QgsSettingsEntryVariantMap

class qgis.core.QgsSettingsEntryVariantMap

Bases: QgsSettingsEntryBaseTemplateQVariantMapBase

A string list settings entry.

New in version 3.30.

QgsSettingsEntryVariantMap(name: str, parent: QgsSettingsTreeNode, defaultValue: Dict[str, Any] = {}, description: str = ‘’, options: Union[Qgis.SettingsOptions, Qgis.SettingsOption] = Qgis.SettingsOptions()) Constructor for QgsSettingsEntryVariantMap.

Parameters:
  • name – specifies the name of the setting.

  • parent – specifies the parent in the tree of settings.

  • defaultValue – specifies the default value for the settings entry.

  • description – specifies a description for the settings entry.

  • options – specifies the options for the settings entry.

QgsSettingsEntryVariantMap(key: str, pluginName: str, defaultValue: Dict[str, Any] = {}, description: str = ‘’, options: Union[Qgis.SettingsOptions, Qgis.SettingsOption] = Qgis.SettingsOptions()) Constructor for QgsSettingsEntryStringMap. This constructor is intended to be used from plugins.

Parameters:
  • key – specifies the key of the settings.

  • pluginName – is inserted in the key after the section.

  • defaultValue – specifies the default value for the settings entry.

  • description – specifies a description for the settings entry.

  • options – specifies the options for the settings entry.

QgsSettingsEntryVariantMap(QgsSettingsEntryVariantMap)

Methods

checkValuePrivate

Check if the value is valid

convertFromVariant

param value:

convertToVariant

Converts the value to a variant

setValuePrivate

Sets the settings value with an optional list of dynamic parts

settingsType

rtype:

Qgis.SettingsType

checkValuePrivate(self, value: Dict[str, Any]) bool

Check if the value is valid

convertFromVariant(self, value: Any) Dict[str, Any]
Parameters:

value (Any) –

Return type:

Dict[str, Any]

convertToVariant(self, value: Dict[str, Any]) Any

Converts the value to a variant

setValuePrivate(self, value: Dict[str, Any], dynamicKeyPartList: Iterable[str]) bool

Sets the settings value with an optional list of dynamic parts

settingsType(self) Qgis.SettingsType
Return type:

Qgis.SettingsType