Skip to content

PythonQt.QtCore.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.
Attributes attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
Cloned attribute Any
Compatibility attribute Any
Constructor attribute Any
Method attribute Any
MethodType attribute type Convert a number or string to an integer, or return 0 if no arguments are given.
Private attribute Any
Protected attribute Any
Public attribute Any
Scriptable attribute Any
Signal attribute Any
Slot attribute Any
__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).
attributes function (self) -> int X.attributes() -> int
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
getParameterTypes function (self, types: Any) -> Any
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
methodIndex function (self) -> int X.methodIndex() -> int
methodSignature function (self) -> Any X.methodSignature() -> PythonQt.QtCore.QByteArray
methodType function (self) -> Any Returns the type of this method (signal, slot, or method).
name function (self) -> Any X.name() -> PythonQt.QtCore.QByteArray
parameterCount function (self) -> int X.parameterCount() -> int
parameterNames function (self) -> Any Returns a list of parameter names.
parameterType function (self, index: int) -> int X.parameterType(index) -> int
parameterTypes function (self) -> Any Returns a list of parameter types.
returnType function (self) -> int X.returnType() -> int
revision function (self) -> int X.revision() -> int
tag function (self) -> str X.tag() -> int
typeName function (self) -> str X.typeName() -> int