Class: QgsVectorLayerSelectionProperties

class qgis.core.QgsVectorLayerSelectionProperties

Bases: QgsMapLayerSelectionProperties

Implementation of layer selection properties for vector layers.

Added in version 3.34.

QgsVectorLayerSelectionProperties(parent: QObject = None) Constructor for QgsVectorLayerSelectionProperties, with the specified parent object.

Methods

childEvent

clone

rtype:

QgsVectorLayerSelectionProperties

connectNotify

customEvent

disconnectNotify

isSignalConnected

readXml

param element:

receivers

selectionColor

Returns the color to use for rendering selected features in the layer.

selectionRenderingMode

Returns the selection rendering mode to use for selected features in the layer.

selectionSymbol

Returns the symbol used to render selected features in the layer.

sender

senderSignalIndex

setSelectionColor

Sets the color to use for rendering selected features in the layer.

setSelectionRenderingMode

Sets the selection rendering mode to use for selected features in the layer.

setSelectionSymbol

Sets the symbol used to render selected features in the layer.

timerEvent

writeXml

param element:

childEvent(self, QChildEvent)
clone(self) QgsVectorLayerSelectionProperties
Return type:

QgsVectorLayerSelectionProperties

connectNotify(self, QMetaMethod)
customEvent(self, QEvent)
disconnectNotify(self, QMetaMethod)
isSignalConnected(self, QMetaMethod) bool
readXml(self, element: QDomElement, context: QgsReadWriteContext) bool
Parameters:
Return type:

bool

receivers(self, PYQT_SIGNAL) int
selectionColor(self) QColor

Returns the color to use for rendering selected features in the layer.

An invalid color indicates that the default (i.e. project level) selection color should be used instead.

Return type:

QColor

selectionRenderingMode(self) Qgis.SelectionRenderingMode

Returns the selection rendering mode to use for selected features in the layer.

Return type:

Qgis.SelectionRenderingMode

selectionSymbol(self) QgsSymbol

Returns the symbol used to render selected features in the layer.

May be None if the default symbol should be used instead.

Return type:

QgsSymbol

sender(self) QObject
senderSignalIndex(self) int
setSelectionColor(self, color: QColor | Qt.GlobalColor | QGradient)

Sets the color to use for rendering selected features in the layer.

An invalid color indicates that the default (i.e. project level) selection color should be used instead.

See also

selectionColor()

Parameters:

color (Union[QColor)

setSelectionRenderingMode(self, mode: Qgis.SelectionRenderingMode)

Sets the selection rendering mode to use for selected features in the layer.

Parameters:

mode (Qgis.SelectionRenderingMode)

setSelectionSymbol(self, symbol: QgsSymbol)

Sets the symbol used to render selected features in the layer.

Ownership of symbol is transferred to the plot. If symbol is None then the default symbol will be used instead.

Parameters:

symbol (QgsSymbol)

timerEvent(self, QTimerEvent)
writeXml(self, element: QDomElement, doc: QDomDocument, context: QgsReadWriteContext) QDomElement
Parameters:
Return type:

QDomElement