Subgroup: Plugin

Class: QgsPluginLayer

class qgis.core.QgsPluginLayer

Bases: qgis._core.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.

Returns:a new layer instance

New in version 3.0.

connectNotify()
customEvent()
dataProvider(self) → QgsDataProvider
decodedSource()
disconnectNotify()
encodedSource()
hasDependencyCycle()
isSignalConnected()
pluginLayerType(self) → str

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

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

Sets extent of the layer

setSource(self, source: str)

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

New in version 2.16.

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