Class: QgsDataDefinedValueDialog

class qgis.gui.QgsDataDefinedValueDialog(symbolList: Iterable[QgsSymbol], layer: QgsVectorLayer, label: str)

Bases: PyQt5.QtWidgets.QDialog

Constructor

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

  • layer (QgsVectorLayer) – must not be None

  • label (str) – value label

Utility classes for “en masse” size definition

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.

context(self)QgsSymbolWidgetContext

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

See also

setContext()

New in version 3.0.

Return type

QgsSymbolWidgetContext

dataDefinedChanged(self)
setContext(self, context: QgsSymbolWidgetContext)

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()

New in version 3.0.

symbolDataDefined()
vectorLayer(self)QgsVectorLayer

Returns the vector layer associated with the widget.

New in version 2.12.

Return type

QgsVectorLayer