Class: QgsSVGFillSymbolLayerWidget¶
A widget for controlling the properties of a
QgsSVGFillSymbolLayer
.

QgsSVGFillSymbolLayerWidget¶
Class Hierarchy¶
Base classes¶
Abstract base class for widgets used to configure |
|
Methods
Enables or disables svg fill color, stroke color and stroke width based on whether the svg file supports custom parameters. |
Static Methods
Creates a new QgsSVGFillSymbolLayerWidget. |
- 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