Class: QgsSvgMarkerSymbolLayerWidget

A widget for controlling the properties of a QgsSvgMarkerSymbolLayer.

QgsSvgMarkerSymbolLayerWidget

QgsSvgMarkerSymbolLayerWidget

Class Hierarchy

Inheritance diagram of qgis.gui.QgsSvgMarkerSymbolLayerWidget

Base classes

QgsSymbolLayerWidget

Abstract base class for widgets used to configure QgsSymbolLayer classes.

QWidget

QObject

QPaintDevice

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])

setSvgPath(self, name: str | None)[source]

Sets the SVG path

Parameters:

name (Optional[str])