QPy
Python-Qt dynamic bindings
 All Classes Namespaces Files Functions
Public Member Functions
qpy::QArgWrapper Class Reference

Wrapper for parameters in a QObject method invocation. More...

#include <PyArgWrappers.h>

List of all members.

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.

Detailed Description

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions