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¶
Base classes¶
Subclasses¶
A dialog for configuring symbol-level data defined rotation. |
|
A dialog for configuring symbol-level data defined size. |
|
A dialog for configuring symbol-level data defined width. |
Abstract Methods
Methods
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts. |
|
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts. |
|
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
- Return type:
- 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
- vectorLayer(self) QgsVectorLayer | None [source]¶
Returns the vector layer associated with the widget.
- Return type:
Optional[QgsVectorLayer]