| QGIS API Documentation 3.99.0-Master (f78f5286a64)
    | 
Single variable definition for use within a QgsExpressionContextScope. More...
#include <qgsexpressioncontext.h>
| Public Member Functions | |
| StaticVariable (const QString &name=QString(), const QVariant &value=QVariant(), bool readOnly=false, bool isStatic=false, const QString &description=QString()) | |
| Constructor for StaticVariable. | |
| Public Attributes | |
| QString | description | 
| Translated description of variable, for use within expression builder widgets. | |
| bool | isStatic | 
| A static variable can be cached for the lifetime of a context. | |
| QString | name | 
| Variable name. | |
| bool | readOnly | 
| True if variable should not be editable by users. | |
| QVariant | value | 
| Variable value. | |
Single variable definition for use within a QgsExpressionContextScope.
Definition at line 122 of file qgsexpressioncontext.h.
| 
 | inline | 
Constructor for StaticVariable.
| name | variable name (should be unique within the QgsExpressionContextScope) | 
| value | initial variable value | 
| readOnly | trueif variable should not be editable by users | 
| isStatic | trueif the variable will not change during the lifteime of an iterator. | 
| description | optional translated description of variable, for use in expression builder widgets | 
Definition at line 133 of file qgsexpressioncontext.h.
| QString QgsExpressionContextScope::StaticVariable::description | 
Translated description of variable, for use within expression builder widgets.
Definition at line 154 of file qgsexpressioncontext.h.
| bool QgsExpressionContextScope::StaticVariable::isStatic | 
A static variable can be cached for the lifetime of a context.
Definition at line 151 of file qgsexpressioncontext.h.
| QString QgsExpressionContextScope::StaticVariable::name | 
Variable name.
Definition at line 142 of file qgsexpressioncontext.h.
| bool QgsExpressionContextScope::StaticVariable::readOnly | 
True if variable should not be editable by users.
Definition at line 148 of file qgsexpressioncontext.h.
| QVariant QgsExpressionContextScope::StaticVariable::value | 
Variable value.
Definition at line 145 of file qgsexpressioncontext.h.