diff --git a/src/core/project/qgsproject.h b/src/core/project/qgsproject.h index ca541a2f914..6a8f901f562 100644 --- a/src/core/project/qgsproject.h +++ b/src/core/project/qgsproject.h @@ -1185,7 +1185,7 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera * \see mapLayer() * \see mapLayers() */ - QList mapLayersByName( const QString &layerName ) const; + Q_INVOKABLE QList mapLayersByName( const QString &layerName ) const; /** * Retrieves a list of matching registered layers by layer \a shortName.