Class: QgsFieldFormatterContext

class qgis.core.QgsFieldFormatterContext

Bases: sip.wrapper

A context for field formatter containing information like the project

Added in version 3.12.

QgsFieldFormatterContext() Constructor

QgsFieldFormatterContext(a0: QgsFieldFormatterContext)

Methods

project

Returns the project used in field formatter

setProject

Sets the project used in field formatter

project(self) QgsProject | None

Returns the project used in field formatter

See also

setProject()

Return type:

Optional[QgsProject]

setProject(self, project: QgsProject | None)

Sets the project used in field formatter

See also

project()

Parameters:

project (Optional[QgsProject])