Class: QgsSVGFillSymbolLayerWidget

QgsSVGFillSymbolLayerWidget

QgsSVGFillSymbolLayerWidget

Class Hierarchy

Inheritance diagram of qgis.gui.QgsSVGFillSymbolLayerWidget

Base classes

QgsSymbolLayerWidget

Constructor for QgsSymbolLayerWidget.

QWidget

QObject

QPaintDevice

Methods

updateParamGui

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

Static Methods

create

Creates a new QgsSVGFillSymbolLayerWidget.

class qgis.gui.QgsSVGFillSymbolLayerWidget(vl: QgsVectorLayer | None, parent: QWidget | None = None)[source]

Bases: QgsSymbolLayerWidget

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