QMetaMethod Class
The QMetaMethod class provides meta-data about a member function. More...
| Header: | #include <QMetaMethod> |
| qmake: | QT += core |
Public Types
| enum | Access { Private, Protected, Public } |
| enum | MethodType { Method, Signal, Slot, Constructor } |
Macros
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.
See also QMetaObject, QMetaEnum, QMetaProperty, and Qt's Property System.
Member Type Documentation
enum QMetaMethod::Access
This enum describes the access level of a method, following the conventions used in C++.
| Constant | Value |
|---|---|
QMetaMethod::Private | 0 |
QMetaMethod::Protected | 1 |
QMetaMethod::Public | 2 |
enum QMetaMethod::MethodType
| Constant | Value | Description |
|---|---|---|
QMetaMethod::Method | 0 | The function is a plain member function. |
QMetaMethod::Signal | 1 | The function is a signal. |
QMetaMethod::Slot | 2 | The function is a slot. |
QMetaMethod::Constructor | 3 | The function is a constructor. |