Class: QgsVectorLayerSelectionProperties¶
Implementation of layer selection properties for vector layers.
Added in version 3.34.
List of all members, including inherited members
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. |
Signals
Emitted whenever the selection color changes. |
|
Emitted whenever the selection rendering mode changes. |
|
Emitted whenever the selection symbol changes. |
- class qgis.core.QgsVectorLayerSelectionProperties[source]¶
Bases:
QgsMapLayerSelectionProperties- __init__(parent: QObject | None = None)
Constructor for QgsVectorLayerSelectionProperties, with the specified
parentobject.- 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
- signal selectionColorChanged[source]¶
Emitted whenever the selection color changes.
Added in version 4.0.
- selectionRenderingMode(self) Qgis.SelectionRenderingMode[source]¶
Returns the selection rendering mode to use for selected features in the layer.
See also
- Return type:
- signal selectionRenderingModeChanged[source]¶
Emitted whenever the selection rendering mode changes.
Added in version 4.0.
- selectionSymbol(self) QgsSymbol | None[source]¶
Returns the symbol used to render selected features in the layer.
May be
Noneif the default symbol should be used instead.See also
- Return type:
Optional[QgsSymbol]
- signal selectionSymbolChanged[source]¶
Emitted whenever the selection symbol changes.
Added in version 4.0.
- setSelectionColor(self, color: QColor | Qt.GlobalColor)[source]¶
Sets the
colorto use for rendering selected features in the layer.An invalid
colorindicates 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
modeto use for selected features in the layer.See also
- Parameters:
mode (Qgis.SelectionRenderingMode)