Class: QgsSettingsRegistry¶
Used for settings introspection and collects a list of child
QgsSettingsRegistry and a list of child
QgsSettingsRegistry.
Added in version 3.20.
Deprecated since version 3.30: Use QgsSettings.treeRoot() instead.
Class Hierarchy¶
Subclasses¶
Used for settings introspection and collects all |
|
Used for settings introspection and collects all |
Methods
Adds settingsEntry to the registry. |
|
Adds a group of setting to the registry |
|
Append a child settingsRegistry to the register. |
|
Remove a child settingsRegistry from the register. |
|
Returns the list of registered |
|
Returns the |
|
Returns the list of registered child QgsSettingsRegistry. |
- class qgis.core.QgsSettingsRegistry[source]¶
Bases:
object- addSettingsEntry(self, settingsEntry: QgsSettingsEntryBase | None) bool[source]¶
Adds
settingsEntryto the registry.- Parameters:
settingsEntry (Optional[QgsSettingsEntryBase])
- Return type:
bool
- addSettingsEntryGroup(self, settingsGroup: QgsSettingsEntryGroup | None)[source]¶
Adds a group of setting to the registry
Added in version 3.26.
Deprecated since version 3.30.
- Parameters:
settingsGroup (Optional[QgsSettingsEntryGroup])
- addSubRegistry(self, settingsRegistry: QgsSettingsRegistry | None)[source]¶
Append a child
settingsRegistryto the register.- Parameters:
settingsRegistry (Optional[QgsSettingsRegistry])
- removeSubRegistry(self, settingsRegistry: QgsSettingsRegistry | None)[source]¶
Remove a child
settingsRegistryfrom the register.- Parameters:
settingsRegistry (Optional[QgsSettingsRegistry])
- settingEntries(self) List[QgsSettingsEntryBase]¶
Returns the list of registered
QgsSettingsEntryBase.- Return type:
List[QgsSettingsEntryBase]
- settingsEntry(self, key: str | None, searchChildRegistries: bool = True) QgsSettingsEntryBase | None[source]¶
Returns the
QgsSettingsEntrywith the givenkeyor None if not found.The
searchChildRegistriesparameter specifies if child registries should be included in the search- Parameters:
key (Optional[str])
searchChildRegistries (bool = True)
- Return type:
Optional[QgsSettingsEntryBase]
- subRegistries(self) List[QgsSettingsRegistry]¶
Returns the list of registered child QgsSettingsRegistry.
- Return type:
List[QgsSettingsRegistry]