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 throughQgsGui.instance()
->:py:func:~dataItemGuiProviderRegistry.New in version 3.6:
Methods
Adds a
provider
implementation to the registry.Initializes the registry.
Returns the list of available providers.
Removes a
provider
implementation from the registry.- addProvider(self, provider: QgsDataItemGuiProvider)¶
Adds a
provider
implementation to the registry. Ownership of the provider is transferred to the registry.- Parameters:
provider (QgsDataItemGuiProvider) –
- 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.
- Parameters:
providerGuiRegistry (QgsProviderGuiRegistry) –
- providers(self) List[QgsDataItemGuiProvider] ¶
Returns the list of available providers.
- Return type:
List[QgsDataItemGuiProvider]
- removeProvider(self, provider: QgsDataItemGuiProvider)¶
Removes a
provider
implementation from the registry. The provider object is automatically deleted.- Parameters:
provider (QgsDataItemGuiProvider) –