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 specifiedparent
object.Methods
- rtype:
QgsVectorLayerSelectionProperties
- param element:
Returns the color to use for rendering selected features in the layer.
Returns the selection rendering mode to use for selected features in the layer.
Returns the symbol used to render selected features in the layer.
Sets the
color
to use for rendering selected features in the layer.Sets the selection rendering
mode
to use for selected features in the layer.Sets the
symbol
used to render selected features in the layer.- param element:
- childEvent(self, QChildEvent)¶
- clone(self) QgsVectorLayerSelectionProperties ¶
- Return type:
- connectNotify(self, QMetaMethod)¶
- customEvent(self, QEvent)¶
- disconnectNotify(self, QMetaMethod)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- readXml(self, element: QDomElement, context: QgsReadWriteContext) bool ¶
- Parameters:
element (QDomElement)
context (QgsReadWriteContext)
- 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.
See also
- Return type:
QColor
- selectionRenderingMode(self) Qgis.SelectionRenderingMode ¶
Returns the selection rendering mode to use for selected features in the layer.
See also
- Return type:
- 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.See also
- Return type:
- 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
- Parameters:
color (Union[QColor)
- setSelectionRenderingMode(self, mode: Qgis.SelectionRenderingMode)¶
Sets the selection rendering
mode
to use for selected features in the layer.See also
- 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. Ifsymbol
isNone
then the default symbol will be used instead.See also
- Parameters:
symbol (QgsSymbol)
- timerEvent(self, QTimerEvent)¶
- writeXml(self, element: QDomElement, doc: QDomDocument, context: QgsReadWriteContext) QDomElement ¶
- Parameters:
element (QDomElement)
doc (QDomDocument)
context (QgsReadWriteContext)
- Return type:
QDomElement