Class: QgsSettingsTree¶
Holds the tree structure for the settings in QGIS core.
See also
Added in version 3.30.
List of all members, including inherited members
Methods
Returns the tree node at the given key |
Static Methods
Creates a settings tree node for the given pluginName. |
|
Returns the tree root node for the settings tree |
|
Unregisters the tree node for the given plugin. |
- class qgis.core.QgsSettingsTree[source]¶
Bases:
object- static createPluginTreeNode(pluginName: str | None) QgsSettingsTreeNode | None[source]¶
Creates a settings tree node for the given
pluginName.Note
Since QGIS 4.2 for Python plugins, the node is created automatically by QGIS when the plugin is started and is exposed as the
SETTINGS_NODEattribute on the plugin package. Plugin authors should retrieve it withfrom <my_plugin> import SETTINGS_NODErather than calling this method directly.- Parameters:
pluginName (Optional[str])
- Return type:
- node(key: str | None) QgsSettingsTreeNode | None[source]¶
Returns the tree node at the given
keyNote
For Plugins, use
createPluginTreeNode()to create nodes for plugin settings.- Parameters:
key (Optional[str])
- Return type:
- static treeRoot() QgsSettingsTreeNode | None[source]¶
Returns the tree root node for the settings tree
- Return type:
- static unregisterPluginTreeNode(pluginName: str | None)[source]¶
Unregisters the tree node for the given plugin.
Note
Since QGIS 4.2 for Python plugins, the node is unregistered automatically by QGIS when the plugin is unloaded; plugins do not need to call this method themselves.
- Parameters:
pluginName (Optional[str])