QgsCodeEditorExpression class

A QGIS expression editor based on QScintilla2.

Adds syntax highlighting and code autocompletion.

Base classes

class QgsCodeEditor
A text editor based on QScintilla2.

Constructors, destructors, conversion operators

QgsCodeEditorExpression(QWidget* parent = nullptr)
Constructor for QgsCodeEditorExpression.

Public functions

void setExpressionContext(const QgsExpressionContext& context)
Variables and functions from this expression context will be added to the API.
void setFields(const QgsFields& fields)
Field names will be added to the API.

Function documentation

void QgsCodeEditorExpression::setExpressionContext(const QgsExpressionContext& context)

Variables and functions from this expression context will be added to the API.

Will also reload all globally registered functions.