Class: QgsRelationContext¶
- class qgis.core.QgsRelationContext¶
Bases:
sip.wrapper
Context for relations. Used to resolve layers from projects.
Added in version 3.11.
QgsRelationContext(project: Optional[QgsProject] = None) Constructor for QgsRelationContext.
QgsRelationContext(other:
QgsRelationContext
) Copy constructor- project(self) QgsProject | None ¶
Gets the associated project
If there is no associated project, then it will return the global project instance
- Return type:
Optional[QgsProject]