Some helper methods that allow testing of the ownership.
More...
#include <PythonQtStdDecorators.h>
Some helper methods that allow testing of the ownership.
Definition at line 177 of file PythonQtStdDecorators.h.
| PythonQtDebugAPI::PythonQtDebugAPI |
( |
QObject * |
parent | ) |
|
|
inline |
| bool PythonQtDebugAPI::hasExtraShellRefCount |
( |
PyObject * |
object | ) |
|
|
slot |
Returns if the shell instance has an extra ref count from the C++ side.
| bool PythonQtDebugAPI::isDerivedShellInstance |
( |
PyObject * |
object | ) |
|
|
slot |
Returns if the C++ object is an instance of a Python class that derives a C++ class.
| bool PythonQtDebugAPI::isOwnedByPython |
( |
PyObject * |
object | ) |
|
|
slot |
Returns if the C++ object is owned by PythonQt and will be deleted when the reference goes away.
| bool PythonQtDebugAPI::isPythonQtClassWrapper |
( |
PyObject * |
object | ) |
|
|
slot |
Returns if the given object is a PythonQt class wrapper (or derived class)
| bool PythonQtDebugAPI::isPythonQtInstanceWrapper |
( |
PyObject * |
object | ) |
|
|
slot |
Returns if the given object is a PythonQt instance wrapper (or derived class)
| bool PythonQtDebugAPI::passOwnershipToCPP |
( |
PyObject * |
object | ) |
|
|
slot |
Pass the ownership of the given object to CPP (so that it will not be deleted by Python if the reference goes away)
| bool PythonQtDebugAPI::passOwnershipToPython |
( |
PyObject * |
object | ) |
|
|
slot |
Pass the ownership of the given object to Python (so that the C++ object will be deleted when the Python reference goes away)
The documentation for this class was generated from the following file: