1 #ifndef _PYTHONQTINSTANCEWRAPPER_H
2 #define _PYTHONQTINSTANCEWRAPPER_H
51 #include "structmember.h"
52 #include "methodobject.h"
int PythonQtInstanceWrapper_init(PythonQtInstanceWrapper *self, PyObject *args, PyObject *kwds)
PYTHONQT_EXPORT PyTypeObject PythonQtInstanceWrapper_Type
PyObject * PythonQtInstanceWrapper_delete(PythonQtInstanceWrapper *self)
a class that stores all required information about a Qt object (and an optional associated C++ class ...
a Python wrapper object for Qt objects and C++ objects (that are themselves wrapped by wrapper QObjec...
void * _wrappedPtr
optional C++ object Ptr that is wrapped by the above _obj
void passOwnershipToCPP()
Passes the ownership of the wrapped object to C++.
bool _shellInstanceRefCountsWrapper
stores if the shell instance (C++) owns the wrapper with its ref count
void setQObject(QObject *object)
set the QObject pointer
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()
PyObject_HEAD PythonQtClassInfo * classInfo()
the class information, this is set even if the _obj or _wrappedPtr is NULL to support typed NULL poin...
PythonQtDynamicClassInfo * dynamicClassInfo()
void passOwnershipToPython()
Passes the ownership to Python.
bool _isShellInstance
stores if the object is a shell instance
QPointer< QObject > _obj
pointer to the wrapped Qt object or if _wrappedPtr is set, the Qt object that wraps the C++ Ptr