Class: QgsGradientFillSymbolLayerWidget

QgsGradientFillSymbolLayerWidget in a default state

QgsGradientFillSymbolLayerWidget in a default state

Class Hierarchy

Inheritance diagram of qgis.gui.QgsGradientFillSymbolLayerWidget

Base classes

QgsSymbolLayerWidget

Constructor for QgsSymbolLayerWidget.

QWidget

QObject

QPaintDevice

Methods

applyColorRamp

Applies the color ramp passed on by the color ramp button

setColor

setColor2

setCoordinateMode

setGradientSpread

setGradientType

Static Methods

create

Creates a new QgsGradientFillSymbolLayerWidget.

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

Bases: QgsSymbolLayerWidget

applyColorRamp(self)[source]

Applies the color ramp passed on by the color ramp button

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

Creates a new QgsGradientFillSymbolLayerWidget.

Parameters:

vl (Optional[QgsVectorLayer]) – associated vector layer

Return type:

Optional[QgsSymbolLayerWidget]

setColor(self, color: QColor | Qt.GlobalColor)[source]
Parameters:

color (Union[QColor, Qt.GlobalColor])

setColor2(self, color: QColor | Qt.GlobalColor)[source]
Parameters:

color (Union[QColor, Qt.GlobalColor])

setCoordinateMode(self, index: int)[source]
Parameters:

index (int)

setGradientSpread(self, index: int)[source]
Parameters:

index (int)

setGradientType(self, index: int)[source]
Parameters:

index (int)