QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Member Functions | List of all members
QgsRelationContext Class Reference

Context for relations. More...

#include <qgsrelationcontext.h>

Public Member Functions

 QgsRelationContext (const QgsRelationContext &other)
 Copy constructor. More...
 
 QgsRelationContext (QgsProject *project=nullptr)
 Constructor for QgsRelationContext. More...
 
 ~QgsRelationContext ()
 
QgsRelationContextoperator= (const QgsRelationContext &other)
 Assignment operator. More...
 
const QgsProjectproject () const
 Gets the associated project. More...
 

Detailed Description

Context for relations.

Used to resolve layers from projects.

Since
QGIS 3.11

Definition at line 31 of file qgsrelationcontext.h.

Constructor & Destructor Documentation

◆ QgsRelationContext() [1/2]

QgsRelationContext::QgsRelationContext ( QgsProject project = nullptr)

Constructor for QgsRelationContext.

Definition at line 18 of file qgsrelationcontext.cpp.

◆ ~QgsRelationContext()

QgsRelationContext::~QgsRelationContext ( )
default

◆ QgsRelationContext() [2/2]

QgsRelationContext::QgsRelationContext ( const QgsRelationContext other)

Copy constructor.

Definition at line 25 of file qgsrelationcontext.cpp.

Member Function Documentation

◆ operator=()

QgsRelationContext & QgsRelationContext::operator= ( const QgsRelationContext other)

Assignment operator.

Definition at line 30 of file qgsrelationcontext.cpp.

◆ 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 36 of file qgsrelationcontext.cpp.


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