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”
Methods
appendError
childEvent
clone
Returns a new instance equivalent to this one. connectNotify
customEvent
dataProvider
disconnectNotify
hasDependencyCycle
isSignalConnected
pluginLayerType
Return plugin layer type (the same as used in QgsPluginLayerRegistry) readCommonStyle
readCustomProperties
readStyleManager
readXml
receivers
sender
senderSignalIndex
setError
setExtent
Set extent of the layer setSource
Set source string. setValid
timerEvent
writeCommonStyle
writeCustomProperties
writeStyleManager
writeXml
Signals
Attributes
-
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¶
-
disconnectNotify
()¶
-
hasDependencyCycle
()¶
-
isSignalConnected
()¶
-
pluginLayerType
(self) → str¶ Return plugin layer type (the same as used in QgsPluginLayerRegistry)
-
readCommonStyle
()¶
-
readCustomProperties
()¶
-
readStyleManager
()¶
-
readXml
()¶
-
receivers
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setError
()¶
-
setExtent
(self, extent: QgsRectangle)¶ Set 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
()¶
-