Class: QgsValidityCheckContext

class qgis.core.QgsValidityCheckContext

Bases: sip.wrapper

Base class for validity check contexts.

QgsAbstractValidityCheck subclasses are passed a QgsValidityCheckContext subclass which encapsulates the context around that particular check type. For instance, a QgsAbstractValidityCheck of the QgsAbstractValidityCheck.TypeLayoutCheck type will be passed a QgsLayoutValidityCheckContext context, containing a reference to the QgsLayout to be checked.

New in version 3.6:

Methods

type

Returns the context type.

Attributes

TypeLayoutContext

TypeUserContext

class ContextType

Bases: int

TypeLayoutContext = 1
TypeUserContext = 10001
type(self) int

Returns the context type.

Return type:

int