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