Class: QgsSymbolsListWidget

QgsSymbolsListWidget

QgsSymbolsListWidget

Class Hierarchy

Inheritance diagram of qgis.gui.QgsSymbolsListWidget

Base classes

QWidget

QObject

QPaintDevice

Methods

clipFeaturesToggled

context

Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.

layer

Returns the vector layer associated with the widget.

setContext

Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.

setLineWidth

setMarkerAngle

setMarkerSize

setSymbolColor

updateDataDefinedLineWidth

updateDataDefinedMarkerAngle

updateDataDefinedMarkerSize

Signals

changed

Emitted when the symbol is modified in the widget.

class qgis.gui.QgsSymbolsListWidget(symbol: QgsSymbol | None, style: QgsStyle | None, menu: QMenu | None, parent: QWidget | None, layer: QgsVectorLayer | None = None)[source]

Bases: QWidget

signal changed[source]

Emitted when the symbol is modified in the widget.

clipFeaturesToggled(self, checked: bool)[source]
Parameters:

checked (bool)

context(self) QgsSymbolWidgetContext[source]

Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.

See also

setContext()

Return type:

QgsSymbolWidgetContext

layer(self) QgsVectorLayer | None[source]

Returns the vector layer associated with the widget.

Return type:

Optional[QgsVectorLayer]

setContext(self, context: QgsSymbolWidgetContext)[source]

Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.

Parameters:

context (QgsSymbolWidgetContext) – symbol widget context

See also

context()

setLineWidth(self, width: float)[source]
Parameters:

width (float)

setMarkerAngle(self, angle: float)[source]
Parameters:

angle (float)

setMarkerSize(self, size: float)[source]
Parameters:

size (float)

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

color (Union[QColor, Qt.GlobalColor])

updateDataDefinedLineWidth(self)[source]
updateDataDefinedMarkerAngle(self)[source]
updateDataDefinedMarkerSize(self)[source]