Skip to content

PythonQt.Qt.QMetaMethod

QMetaMethod

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

A QMetaMethod has a methodType(), a methodSignature(), a list of parameterTypes() and parameterNames(), a return typeName(), a tag(), and an access() specifier. You can use invoke() to invoke the method on an arbitrary QObject.

Source: https://doc.qt.io/archives/qt-5.15/qmetamethod.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
Access attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
Attributes attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
Cloned attribute Any (shared captured text)
Compatibility attribute Any (shared captured text)
Constructor attribute Any (shared captured text)
Method attribute Any (shared captured text)
MethodType attribute type Convert a number or string to an integer, or return 0 if no arguments are given. (shared captured text)
Private attribute Any (shared captured text)
Protected attribute Any (shared captured text)
Public attribute Any (shared captured text)
Scriptable attribute Any (shared captured text)
Signal attribute Any (shared captured text)
Slot attribute Any (shared captured text)
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
access function (self) -> Any Returns the access specification of this method (private, protected, or public). (shared captured text)
attributes function (self) -> int X.attributes() -> int (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)
getParameterTypes function (self, types: Any) -> Any (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)
isValid function (self) -> bool X.isValid() -> bool (shared captured text)
methodIndex function (self) -> int X.methodIndex() -> int (shared captured text)
methodSignature function (self) -> Any X.methodSignature() -> PythonQt.QtCore.QByteArray (shared captured text)
methodType function (self) -> Any Returns the type of this method (signal, slot, or method). (shared captured text)
name function (self) -> Any X.name() -> PythonQt.QtCore.QByteArray (shared captured text)
parameterCount function (self) -> int X.parameterCount() -> int (shared captured text)
parameterNames function (self) -> Any Returns a list of parameter names. (shared captured text)
parameterType function (self, index: int) -> int X.parameterType(index) -> int (shared captured text)
parameterTypes function (self) -> Any Returns a list of parameter types. (shared captured text)
returnType function (self) -> int X.returnType() -> int (shared captured text)
revision function (self) -> int X.revision() -> int (shared captured text)
tag function (self) -> str X.tag() -> int (shared captured text)
typeName function (self) -> str X.typeName() -> int (shared captured text)