Class: QgsSvgMarkerSymbolLayerWidget¶
A widget for controlling the properties of a
QgsSvgMarkerSymbolLayer
.

QgsSvgMarkerSymbolLayerWidget¶
Class Hierarchy¶
Base classes¶
Abstract base class for widgets used to configure |
|
Methods
This method does nothing anymore, the loading is automatic |
|
Updates the GUI to reflect the SVG marker symbol layer. |
|
Sets the dynamic SVG parameters |
|
Sets the SVG path |
Static Methods
Creates a new QgsSvgMarkerSymbolLayerWidget. |
- class qgis.gui.QgsSvgMarkerSymbolLayerWidget[source]¶
Bases:
QgsSymbolLayerWidget
- __init__(vl: QgsVectorLayer | None, parent: QWidget | None = None)
Constructor for QgsSvgMarkerSymbolLayerWidget.
- Parameters:
vl (Optional[QgsVectorLayer]) – associated vector layer
parent (Optional[QWidget] = None) – parent widget
- static create(vl: QgsVectorLayer | None) QgsSymbolLayerWidget | None [source]¶
Creates a new QgsSvgMarkerSymbolLayerWidget.
- Parameters:
vl (Optional[QgsVectorLayer]) – associated vector layer
- Return type:
Optional[QgsSymbolLayerWidget]
- populateList(self)[source]¶
This method does nothing anymore, the loading is automatic
Deprecated since version 3.16.
- setGuiForSvg(self, layer: QgsSvgMarkerSymbolLayer | None, skipDefaultColors: bool = False)[source]¶
Updates the GUI to reflect the SVG marker symbol
layer
.- Parameters:
layer (Optional[QgsSvgMarkerSymbolLayer]) – SVG marker symbol layer
skipDefaultColors (bool = False) – if
True
, the default fill and outline colors of the SVG file will not overwrite the ones from the symbol layer
- setSvgParameters(self, parameters: Dict[str | None, QgsProperty])[source]¶
Sets the dynamic SVG parameters
- Parameters:
parameters (Dict[Optional[str], QgsProperty])