Class: QgsCodeEditorExpression¶
A QGIS expression editor based on QScintilla2. Adds syntax highlighting and code autocompletion.
Added in version 3.4.

QgsCodeEditorExpression containing a sample QGIS expression¶
Class Hierarchy¶
Base classes¶
A text editor based on QScintilla2. |
|
Methods
Variables and functions from this expression context will be added to the API. |
|
Field names will be added to the API. |
- class qgis.gui.QgsCodeEditorExpression[source]¶
Bases:
QgsCodeEditor
- __init__(parent: QWidget | None = None)
Constructor for QgsCodeEditorExpression
- Parameters:
parent (Optional[QWidget] = None)
- setExpressionContext(self, context: QgsExpressionContext)[source]¶
Variables and functions from this expression context will be added to the API. Will also reload all globally registered functions.
- Parameters:
context (QgsExpressionContext)