Class: QgsSVGFillSymbolLayerWidget

A widget for controlling the properties of a QgsSVGFillSymbolLayer.

QgsSVGFillSymbolLayerWidget

QgsSVGFillSymbolLayerWidget

Class Hierarchy

Inheritance diagram of qgis.gui.QgsSVGFillSymbolLayerWidget

Base classes

QgsSymbolLayerWidget

Abstract base class for widgets used to configure QgsSymbolLayer classes.

QWidget

QObject

QPaintDevice

class qgis.gui.QgsSVGFillSymbolLayerWidget[source]

Bases: QgsSymbolLayerWidget

__init__(vl: QgsVectorLayer | None, parent: QWidget | None = None)

Constructor for QgsSVGFillSymbolLayerWidget.

Parameters:
  • vl (Optional[QgsVectorLayer]) – associated vector layer

  • parent (Optional[QWidget] = None) – parent widget

static create(vl: QgsVectorLayer | None) QgsSymbolLayerWidget | None[source]

Creates a new QgsSVGFillSymbolLayerWidget.

Parameters:

vl (Optional[QgsVectorLayer]) – associated vector layer

Return type:

Optional[QgsSymbolLayerWidget]

updateParamGui(self, resetValues: bool = True)[source]

Enables or disables svg fill color, stroke color and stroke width based on whether the svg file supports custom parameters.

Parameters:

resetValues (bool = True) – set to True to overwrite existing layer fill color, stroke color and stroke width with default values from svg file