| QGIS API Documentation
    3.22.4-Białowieża (ce8e65e95e)
    | 
Contains utility functions for working with QGIS projects. More...
#include <qgsprojectutils.h>
| Static Public Member Functions | |
| static QList< QgsMapLayer * > | layersMatchingPath (const QgsProject *project, const QString &path) | 
| Returns a list of all layers in the specified project which match the given path.  More... | |
| static bool | updateLayerPath (QgsProject *project, const QString &oldPath, const QString &newPath) | 
| Updates a project, replacing the data source for all layers which match the given oldPath with sources which point to newPath.  More... | |
Contains utility functions for working with QGIS projects.
Definition at line 34 of file qgsprojectutils.h.
| 
 | static | 
Returns a list of all layers in the specified project which match the given path.
This method can be used to retrieve a list of layers in a project associated with a file path.
Definition at line 22 of file qgsprojectutils.cpp.
| 
 | static | 
Updates a project, replacing the data source for all layers which match the given oldPath with sources which point to newPath.
Returns true if any layers were updated as a result. 
Definition at line 39 of file qgsprojectutils.cpp.