a Python wrapper object for Qt objects and C++ objects (that are themselves wrapped by wrapper QObjects) More...
#include <PythonQtInstanceWrapper.h>
Public Member Functions | |
PyObject_HEAD PythonQtClassInfo * | classInfo () |
the class information, this is set even if the _obj or _wrappedPtr is NULL to support typed NULL pointers | |
void | setQObject (QObject *object) |
set the QObject pointer | |
Public Attributes | |
QPointer< QObject > | _obj |
pointer to the wrapped Qt object or if _wrappedPtr is set, the Qt object that wraps the C++ Ptr | |
void * | _objPointerCopy |
void * | _wrappedPtr |
optional C++ object Ptr that is wrapped by the above _obj | |
bool | _ownedByPythonQt |
flag that stores if the object is owned by pythonQt | |
bool | _useQMetaTypeDestroy |
stores that the owned object should be destroyed using QMetaType::destroy() | |
bool | _isShellInstance |
stores if the object is a shell instance |
a Python wrapper object for Qt objects and C++ objects (that are themselves wrapped by wrapper QObjects)
Definition at line 62 of file PythonQtInstanceWrapper.h.
PyObject_HEAD PythonQtClassInfo* PythonQtInstanceWrapperStruct::classInfo | ( | ) |
the class information, this is set even if the _obj or _wrappedPtr is NULL to support typed NULL pointers
void PythonQtInstanceWrapperStruct::setQObject | ( | QObject * | object | ) | [inline] |
set the QObject pointer
Definition at line 69 of file PythonQtInstanceWrapper.h.
References _obj, and _objPointerCopy.
{ _obj = object; _objPointerCopy = object; }
stores if the object is a shell instance
Definition at line 92 of file PythonQtInstanceWrapper.h.
QPointer<QObject> PythonQtInstanceWrapperStruct::_obj |
pointer to the wrapped Qt object or if _wrappedPtr is set, the Qt object that wraps the C++ Ptr
Definition at line 75 of file PythonQtInstanceWrapper.h.
Referenced by setQObject().
a copy of the _obj pointer, which is required because the wrapper needs to deregister itself via the _obj pointer, even when the QPointer<QObject> object was destroyed
Definition at line 78 of file PythonQtInstanceWrapper.h.
Referenced by setQObject().
flag that stores if the object is owned by pythonQt
Definition at line 86 of file PythonQtInstanceWrapper.h.
stores that the owned object should be destroyed using QMetaType::destroy()
Definition at line 89 of file PythonQtInstanceWrapper.h.
optional C++ object Ptr that is wrapped by the above _obj
Definition at line 81 of file PythonQtInstanceWrapper.h.