QgsDataDefinedValueDialog class

Utility classes for "en masse" size definition.

Base classes

class QgsExpressionContextGenerator
Abstract interface for generating an expression context.

Constructors, destructors, conversion operators

QgsDataDefinedValueDialog(const QList<QgsSymbol*>& symbolList, QgsVectorLayer* layer, const QString& label)
Constructor.

Public functions

auto context() const -> QgsSymbolWidgetContext
Returns the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
void setContext(const QgsSymbolWidgetContext& context)
Sets the context in which the symbol widget is shown, e.g., the associated map canvas and expression contexts.
auto vectorLayer() const -> const QgsVectorLayer*
Returns the vector layer associated with the widget.

Protected functions

void init(int propertyKey)
Should be called in the constructor of child classes.

Private functions

auto createExpressionContext() const -> QgsExpressionContext override
This method needs to be reimplemented in all classes which implement this interface and return an expression context.

Function documentation

QgsDataDefinedValueDialog::QgsDataDefinedValueDialog(const QList<QgsSymbol*>& symbolList, QgsVectorLayer* layer, const QString& label)

Constructor.

Parameters
symbolList must not be empty
layer must not be null
label value label

QgsSymbolWidgetContext QgsDataDefinedValueDialog::context() const

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

void QgsDataDefinedValueDialog::setContext(const QgsSymbolWidgetContext& context)

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

Parameters
context symbol widget context

const QgsVectorLayer* QgsDataDefinedValueDialog::vectorLayer() const

Returns the vector layer associated with the widget.

void QgsDataDefinedValueDialog::init(int propertyKey) protected

Should be called in the constructor of child classes.

QgsExpressionContext QgsDataDefinedValueDialog::createExpressionContext() const override private

This method needs to be reimplemented in all classes which implement this interface and return an expression context.