Class: QgsCheckBoxFieldFormatter

class qgis.core.QgsCheckBoxFieldFormatter

Bases: QgsFieldFormatter

Constructor for QgsCheckBoxFieldFormatter.

QgsCheckBoxFieldFormatter(QgsCheckBoxFieldFormatter)

Field formatter for a checkbox field.

Methods

id

rtype

str

representValue

param layer

Attributes

ShowStoredValues

ShowTrueFalse

ShowStoredValues = 1
ShowTrueFalse = 0
class TextDisplayMethod

Bases: int

id(self) → str
Return type

str

representValue(self, layer: QgsVectorLayer, fieldIndex: int, config: Dict[str, Any], cache: Any, value: Any) → str
Parameters
  • layer (QgsVectorLayer) –

  • fieldIndex (int) –

  • config (Dict[str) –

  • cache (Any) –

  • value (Any) –

Return type

str