Class: QgsCheckBoxFieldFormatter

class qgis.core.QgsCheckBoxFieldFormatter

Bases: QgsFieldFormatter

Field formatter for a checkbox field.

Added in version 3.10.

QgsCheckBoxFieldFormatter() Constructor for QgsCheckBoxFieldFormatter.

QgsCheckBoxFieldFormatter(a0: QgsCheckBoxFieldFormatter)

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 | None, fieldIndex: int, config: Dict[str, Any], cache: Any, value: Any) str
Parameters:
  • layer (Optional[QgsVectorLayer])

  • fieldIndex (int)

  • config (Dict[str)

  • cache (Any)

  • value (Any)

Return type:

str