Class: QgsRelationContext¶
- class qgis.core.QgsRelationContext(project: QgsProject = None)¶
Bases:
sip.wrapper
Constructor for QgsRelationContext.
QgsRelationContext(other:
QgsRelationContext
) Copy constructorContext for relations. Used to resolve layers from projects.
- project(self) → QgsProject¶
Gets the associated project
If there is no associated project, then it will return the global project instance
- Return type