Class: QgsEnumerationFieldFormatter

Field formatter for an Enumeration field.

Enumeration values can be either list of values (eg. postgres ENUM type) or code-value pairs (eg. gpkg field domains)

A map of code-value pairs is used in both cases, with values==codes in case only values are provided (eg. postgres ENUM type)

Added in version 4.4.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.core.QgsEnumerationFieldFormatter

Base classes

QgsFieldFormatter

A field formatter helps to handle and display values for a field.

Constructor

__init__

class qgis.core.QgsEnumerationFieldFormatter[source]

Bases: QgsFieldFormatter

__init__()

Default constructor of field formatter provider supplied enumerated values.

__init__(a0: QgsEnumerationFieldFormatter)
Parameters:

a0 (QgsEnumerationFieldFormatter)