Class: QgsProviderGuiRegistry

class qgis.gui.QgsProviderGuiRegistry(pluginPath: str)

Bases: sip.wrapper

Creates registry and loads static provider plugins

QgsProviderGuiRegistry(QgsProviderGuiRegistry)

A registry / canonical manager of GUI parts of data providers.

QgsProviderGuiRegistry is not usually directly created, but rather accessed through QgsGui.providerGuiRegistry()

setPluginPath() should be called (once) to load dynamic providers. Static providers are loaded in constructor.

New in version 3.10.

Parameters

pluginPath

dataItemGuiProviders(self, providerKey: str) → List[QgsDataItemGuiProvider]

Returns all data item gui providers registered in provider with providerKey

Note

Ownership of created data item providers is passed to the caller.

Parameters

providerKey (str) –

Return type

List[QgsDataItemGuiProvider]

projectStorageGuiProviders(self, providerKey: str) → List[QgsProjectStorageGuiProvider]

Returns all project storage gui providers registered in provider with providerKey

Note

Ownership of created project storage gui providers is passed to the caller.

Parameters

providerKey (str) –

Return type

List[QgsProjectStorageGuiProvider]

providerList(self) → List[str]

Returns list of available providers by their keys

Return type

List[str]

providerMetadata(self, providerKey: str)QgsProviderGuiMetadata

Returns metadata of the provider or None if not found

Parameters

providerKey (str) –

Return type

QgsProviderGuiMetadata

registerGuis(self, widget: QMainWindow)

Called during GUI initialization - allows providers to do its internal initialization of GUI components, possibly making use of the passed pointer to the QGIS main window.

Parameters

widget (QMainWindow) –

sourceSelectProviders(self, providerKey: str) → List[QgsSourceSelectProvider]

Returns all source select providers registered in provider with providerKey

Note

Ownership of created source select providers is passed to the caller.

Parameters

providerKey (str) –

Return type

List[QgsSourceSelectProvider]