Class: QgsPluginLayer

class qgis.core.QgsPluginLayer

Bases: QgsMapLayer

Base class for plugin layers. These can be implemented by plugins and registered in QgsPluginLayerRegistry.

In order to be readable from project files, they should set these attributes in layer DOM node: “type” = “plugin” “name” = “your_layer_type”

appendError()
childEvent()
clone(self) → QgsPluginLayer

Returns a new instance equivalent to this one.

Return type

QgsPluginLayer

Returns

a new layer instance

New in version 3.0.

connectNotify()
customEvent()
dataProvider(self) → QgsDataProvider
Return type

QgsDataProvider

decodedSource()
disconnectNotify()
encodedSource()
hasDependencyCycle()
isSignalConnected()
pluginLayerType(self) → str

Returns plugin layer type (the same as used in QgsPluginLayerRegistry)

Return type

str

readCommonStyle()
readCustomProperties()
readStyleManager()
readXml()
receivers()
sender()
senderSignalIndex()
setError()
setExtent(self, extent: QgsRectangle)

Sets extent of the layer

Parameters

extent (QgsRectangle) –

setSource(self, source: str)

Set source string. This is used for example in layer tree to show tooltip.

New in version 2.16.

Parameters

source (str) –

setValid()
timerEvent()
writeCommonStyle()
writeCustomProperties()
writeStyleManager()
writeXml()