Class: QgsMapLayerSelectionProperties

Base class for storage of map layer selection properties.

QgsMapLayerSelectionProperties exposes settings for controlling how an individual QgsMapLayer behaves with respect to feature selection.

Added in version 3.34.

Class Hierarchy

Inheritance diagram of qgis.core.QgsMapLayerSelectionProperties

Base classes

QObject

Subclasses

QgsVectorLayerSelectionProperties

Implementation of layer selection properties for vector layers.

Methods

clone

Creates a clone of the properties.

readXml

Reads temporal properties from a DOM element previously written by writeXml().

writeXml

Writes the properties to a DOM element, to be used later with readXml().

class qgis.core.QgsMapLayerSelectionProperties[source]

Bases: QObject

__init__(parent: QObject | None)

Constructor for QgsMapLayerSelectionProperties, with the specified parent object.

Parameters:

parent (Optional[QObject])

clone(self) QgsMapLayerSelectionProperties | None[source]

Creates a clone of the properties.

Return type:

Optional[QgsMapLayerSelectionProperties]

readXml(self, element: QDomElement, context: QgsReadWriteContext) bool[source]

Reads temporal properties from a DOM element previously written by writeXml().

See also

writeXml()

Parameters:
Return type:

bool

writeXml(self, element: QDomElement, doc: QDomDocument, context: QgsReadWriteContext) QDomElement[source]

Writes the properties to a DOM element, to be used later with readXml().

See also

readXml()

Parameters:
Return type:

QDomElement