Class: metaEnumFromType

class qgis.core.metaEnumFromType(enumClass, baseClass=None, raiseException=True)

Returns the QMetaEnum for an enum type. The enum must have declared using the Q_ENUM macro

  • enumClass – the enum class

  • baseClass – the enum base class. If not given, it will try to get it by using enumValue.__class__.baseClass

  • raiseException – if False, no exception will be raised and None will be return in case of failure


the QMetaEnum if it succeeds, None otherwise