Class: QgsFieldFormatterContext

A context for field formatter containing information like the project.

Added in version 3.12.

Methods

project

Returns the project used in field formatter

setProject

Sets the project used in field formatter

class qgis.core.QgsFieldFormatterContext[source]

Bases: object

project(self) QgsProject | None[source]

Returns the project used in field formatter

See also

setProject()

Return type:

Optional[QgsProject]

setProject(self, project: QgsProject | None)[source]

Sets the project used in field formatter

See also

project()

Parameters:

project (Optional[QgsProject])