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++.

ConstantValue
QMetaMethod::Private0
QMetaMethod::Protected1
QMetaMethod::Public2

enum QMetaMethod::MethodType

ConstantValueDescription
QMetaMethod::Method0The function is a plain member function.
QMetaMethod::Signal1The function is a signal.
QMetaMethod::Slot2The function is a slot.
QMetaMethod::Constructor3The function is a constructor.

Macro Documentation

Q_METAMETHOD_INVOKE_MAX_ARGS

Equals maximum number of arguments available for execution of the method via QMetaMethod::invoke()