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

Context for relations. More...

#include <qgsrelationcontext.h>

Public Member Functions

 QgsRelationContext ()
 Constructor for QgsRelationContext.
 QgsRelationContext (QgsProject *project)
 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() [1/2]

QgsRelationContext::QgsRelationContext ( )

Constructor for QgsRelationContext.

Note
Will be removed in QGIS 5.0. Use QgsRelationContext( QgsProject *project ) with explicit project instead.

Definition at line 20 of file qgsrelationcontext.cpp.

◆ QgsRelationContext() [2/2]

QgsRelationContext::QgsRelationContext ( QgsProject * project)

Constructor for QgsRelationContext.

Definition at line 25 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 32 of file qgsrelationcontext.cpp.


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