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.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: clone(), readXml(), writeXml()

Class Hierarchy

Inheritance diagram of qgis.core.QgsMapLayerSelectionProperties

Base classes

QObject

Subclasses

QgsVectorLayerSelectionProperties

Implementation of layer selection properties for vector layers.

Abstract 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])

abstract clone(self) QgsMapLayerSelectionProperties | None[source]

Creates a clone of the properties.

Return type:

Optional[QgsMapLayerSelectionProperties]

abstract 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

abstract 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