Class: QgsRelationReferenceFieldFormatter

class qgis.core.QgsRelationReferenceFieldFormatter

Bases: qgis._core.QgsFieldFormatter

Default constructor of field formatter for a relation reference field.

QgsRelationReferenceFieldFormatter(QgsRelationReferenceFieldFormatter)

Field formatter for a relation reference field. A value relation field formatter looks up the values from features on another layer.

New in version 3.0: Enums

Methods

createCache

id

representValue

sortValue

Signals

Attributes

createCache(self, layer: QgsVectorLayer, fieldIndex: int, config: Dict[str, Any]) → Any
id(self) → str
representValue(self, layer: QgsVectorLayer, fieldIndex: int, config: Dict[str, Any], cache: Any, value: Any) → str
sortValue(self, layer: QgsVectorLayer, fieldIndex: int, config: Dict[str, Any], cache: Any, value: Any) → Any