Skip to content

PythonQt.QtCore.QMetaEnum

QMetaEnum

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

Use name() for the enumerator's name. The enumerator's keys (names of each enumerated item) are returned by key(); use keyCount() to find the number of keys. isFlag() returns whether the enumerator is meant to be used as a flag, meaning that its values can be combined using the OR operator.

The conversion functions keyToValue(), valueToKey(), keysToValue(), and valueToKeys() allow conversion between the integer representation of an enumeration or set value and its literal representation. The scope() function returns the class scope this enumerator was declared in.

Source: https://doc.qt.io/archives/qt-5.15/qmetaenum.html

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
enclosingMetaObject function (self) -> Any X.enclosingMetaObject() -> PythonQt.QtCore.QMetaObject (shared captured text)
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
isFlag function (self) -> bool X.isFlag() -> bool
isValid function (self) -> bool X.isValid() -> bool
key function (self, index: int) -> str X.key(index) -> int
keyCount function (self) -> int X.keyCount() -> int
keyToValue function (self, key: str, ok: Any) -> int X.keyToValue(key, ok) -> int
keysToValue function (self, keys: str, ok: Any) -> int X.keysToValue(keys, ok) -> int
name function (self) -> str X.name() -> int
scope function (self) -> str X.scope() -> int
value function (self, index: int) -> int X.value(index) -> int
valueToKey function (self, value: int) -> str X.valueToKey(value) -> int
valueToKeys function (self, value: int) -> Any X.valueToKeys(value) -> PythonQt.QtCore.QByteArray