QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
QgsExpressionUtils Class Reference

A set of expression-related functions. More...

#include <qgsexpressionutils.h>

Static Public Member Functions

static std::tuple< QMetaType::Type, int > determineResultType (const QString &expression, const QgsVectorLayer *layer, QgsFeatureRequest request=QgsFeatureRequest(), QgsExpressionContext context=QgsExpressionContext(), bool *foundFeatures=nullptr)
 Returns a value type and user type for a given expression.
 

Detailed Description

A set of expression-related functions.

Since
QGIS 3.22

Definition at line 52 of file qgsexpressionutils.h.

Member Function Documentation

◆ determineResultType()

std::tuple< QMetaType::Type, int > QgsExpressionUtils::determineResultType ( const QString &  expression,
const QgsVectorLayer layer,
QgsFeatureRequest  request = QgsFeatureRequest(),
QgsExpressionContext  context = QgsExpressionContext(),
bool *  foundFeatures = nullptr 
)
static

Returns a value type and user type for a given expression.

Parameters
expressionAn expression string.
layerA vector layer from which the expression will be executed against.
requestA feature request object.
contextAn expression context object.
foundFeaturesAn optional boolean parameter that will be set when features are found.
Since
QGIS 3.22

Definition at line 353 of file qgsexpressionutils.cpp.


The documentation for this class was generated from the following files: