PythonQt.Qt.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 (shared captured text) |
isValid |
function | (self) -> bool |
X.isValid() -> bool (shared captured text) |
key |
function | (self, index: int) -> str |
X.key(index) -> int (shared captured text) |
keyCount |
function | (self) -> int |
X.keyCount() -> int (shared captured text) |
keyToValue |
function | (self, key: str, ok: Any) -> int |
X.keyToValue(key, ok) -> int (shared captured text) |
keysToValue |
function | (self, keys: str, ok: Any) -> int |
X.keysToValue(keys, ok) -> int (shared captured text) |
name |
function | (self) -> str |
X.name() -> int (shared captured text) |
scope |
function | (self) -> str |
X.scope() -> int (shared captured text) |
value |
function | (self, index: int) -> int |
X.value(index) -> int (shared captured text) |
valueToKey |
function | (self, value: int) -> str |
X.valueToKey(value) -> int (shared captured text) |
valueToKeys |
function | (self, value: int) -> Any |
X.valueToKeys(value) -> PythonQt.QtCore.QByteArray (shared captured text) |