Class: QgsDataDefinedValueDialog

Utility classes for “en masse” size definition.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: setDataDefined(), symbolDataDefined(), value()

Class Hierarchy

Inheritance diagram of qgis.gui.QgsDataDefinedValueDialog

Base classes

QDialog

QWidget

QObject

QPaintDevice

Subclasses

QgsDataDefinedRotationDialog

A dialog for configuring symbol-level data defined rotation.

QgsDataDefinedSizeDialog

A dialog for configuring symbol-level data defined size.

QgsDataDefinedWidthDialog

A dialog for configuring symbol-level data defined width.

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

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

Returns the vector layer associated with the widget.

Return type:

Optional[QgsVectorLayer]