Class: QgsVectorLayerSelectionProperties¶
Implementation of layer selection properties for vector layers.
Added in version 3.34.
Class Hierarchy¶
Base classes¶
Base class for storage of map layer selection properties. |
|
Methods
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. |
- class qgis.core.QgsVectorLayerSelectionProperties[source]¶
Bases:
QgsMapLayerSelectionProperties
- __init__(parent: QObject | None = None)
Constructor for QgsVectorLayerSelectionProperties, with the specified
parent
object.- Parameters:
parent (Optional[QObject] = None)
- selectionColor(self) QColor [source]¶
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 [source]¶
Returns the selection rendering mode to use for selected features in the layer.
See also
- Return type:
- selectionSymbol(self) QgsSymbol | None [source]¶
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:
Optional[QgsSymbol]
- setSelectionColor(self, color: QColor | Qt.GlobalColor)[source]¶
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, Qt.GlobalColor])
- setSelectionRenderingMode(self, mode: Qgis.SelectionRenderingMode)[source]¶
Sets the selection rendering
mode
to use for selected features in the layer.See also
- Parameters:
mode (Qgis.SelectionRenderingMode)