Class: QgsDataItemGuiProviderRegistry

class qgis.gui.QgsDataItemGuiProviderRegistry

Bases: sip.wrapper

This class keeps a list of data item GUI providers that may affect how QgsDataItems behave within the application GUI.

QgsDataItemGuiProviderRegistry is not usually directly created, but rather accessed through QgsGui.instance()->dataItemGuiProviderRegistry().

New in version 3.6: Enums

Methods

addProvider

Adds a provider implementation to the registry.

initializeFromProviderGuiRegistry

Initializes the registry.

providers

Returns the list of available providers.

removeProvider

Removes a provider implementation from the registry.

Signals

Attributes

addProvider(self, provider: QgsDataItemGuiProvider)

Adds a provider implementation to the registry. Ownership of the provider is transferred to the registry.

initializeFromProviderGuiRegistry(self, providerGuiRegistry: QgsProviderGuiRegistry)

Initializes the registry. The registry needs to be passed explicitly (instead of using singleton) because this gets called from QgsGui constructor.

New in version 3.10.

providers(self) → List[QgsDataItemGuiProvider]

Returns the list of available providers.

removeProvider(self, provider: QgsDataItemGuiProvider)

Removes a provider implementation from the registry. The provider object is automatically deleted.