Wrapper for parameters in a QObject method invocation. More...
#include <PyArgWrappers.h>
Public Member Functions | |
QArgWrapper (QArgConstructor *ac=0) | |
Default constructor. | |
QArgWrapper (const QArgWrapper &other) | |
Copy constructor: Clone QArgConstructor instance. | |
QGenericArgument | Arg (PyObject *pobj) const |
Return QGenericArgument instance created from PyObjects. | |
~QArgWrapper () | |
Destructor; delete QArgConstructor instance. |
Wrapper for parameters in a QObject method invocation.
Whenever a new QObject is added to the Python context, the signature of each method is translated to an index and a list of QArgWrapper objects stored inside a PyContext instance. At invocation time the proper method is invoked through a call to QMetaMethod::invoke
passing the arguments returned by the QArgWrapper::Arg method invoked on each parameter in the argument list. QArgWrapper stores an instance of QArgConstructor used to create a QGenericArgument from PyObjects.
QGenericArgument qpy::QArgWrapper::Arg | ( | PyObject * | pobj | ) | const [inline] |
Return QGenericArgument instance created from PyObjects.
Internally it calls QArgConstructor::Create to generate QGenericArguments from a PyObject pointer.