Class: QgsDataDefinedValueDialog

Utility classes for “en masse” size definition.

Class Hierarchy

Inheritance diagram of qgis.gui.QgsDataDefinedValueDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

Subclasses

QgsDataDefinedRotationDialog

QgsDataDefinedSizeDialog

QgsDataDefinedWidthDialog

Methods

context

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

dataDefinedChanged

setContext

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

symbolDataDefined

vectorLayer

Returns the vector layer associated with the widget.

class qgis.gui.QgsDataDefinedValueDialog[source]

Bases: QDialog

__init__(symbolList: Iterable[QgsSymbol], layer: QgsVectorLayer | None, label: str | None)

Constructor

Parameters:
  • symbolList (Iterable[QgsSymbol]) – must not be empty

  • layer (Optional[QgsVectorLayer]) – must not be None

  • label (Optional[str]) – value label

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

dataDefinedChanged(self)[source]
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()

symbolDataDefined()[source]
vectorLayer(self) QgsVectorLayer | None[source]

Returns the vector layer associated with the widget.

Return type:

Optional[QgsVectorLayer]