diff --git a/src/core/qgsproject.h b/src/core/qgsproject.h index d84fa9099f8..c803d6ce948 100644 --- a/src/core/qgsproject.h +++ b/src/core/qgsproject.h @@ -700,7 +700,7 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera * \see mapLayersByName() * \see mapLayers() */ - QgsMapLayer *mapLayer( const QString &layerId ) const; + Q_INVOKABLE QgsMapLayer *mapLayer( const QString &layerId ) const; #ifndef SIP_RUN