QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsRelationContext Class Reference

Context for relations. More...

#include <qgsrelationcontext.h>

Public Member Functions

 QgsRelationContext (QgsProject *project=nullptr)
 Constructor for QgsRelationContext.
 ~QgsRelationContext ()
const QgsProjectproject () const
 Gets the associated project.

Detailed Description

Context for relations.

Used to resolve layers from projects.

Since
QGIS 3.11

Definition at line 33 of file qgsrelationcontext.h.

Constructor & Destructor Documentation

◆ QgsRelationContext()

QgsRelationContext::QgsRelationContext ( QgsProject * project = nullptr)

Constructor for QgsRelationContext.

Definition at line 19 of file qgsrelationcontext.cpp.

◆ ~QgsRelationContext()

QgsRelationContext::~QgsRelationContext ( )
default

Member Function Documentation

◆ project()

const QgsProject * QgsRelationContext::project ( ) const

Gets the associated project.

If there is no associated project, then it will return the global project instance

Definition at line 27 of file qgsrelationcontext.cpp.


The documentation for this class was generated from the following files: