GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing mevislab.github.io — PythonQt: PythonQtInstanceWrapper Struct Reference
PythonQtInstanceWrapper Struct Reference a Python wrapper object for Qt objects and C++ objects (that are themselves wrapped by wrapper QObjects) More...
Detailed Descriptiona Python wrapper object for Qt objects and C++ objects (that are themselves wrapped by wrapper QObjects) Definition at line 62 of file PythonQtInstanceWrapper.h. Member Function Documentation◆ classInfo()
the class information, this is set even if the _obj or _wrappedPtr is NULL to support typed NULL pointers Definition at line 66 of file PythonQtInstanceWrapper.h. 66{ return ((PythonQtClassWrapper*)Py_TYPE(this))->_classInfo; }
◆ dynamicClassInfo()
Definition at line 68 of file PythonQtInstanceWrapper.h. 69 {
70 return ((PythonQtClassWrapper*)Py_TYPE(this))->_dynamicClassInfo;
71 }
◆ passOwnershipToCPP()
Passes the ownership of the wrapped object to C++. Definition at line 81 of file PythonQtInstanceWrapper.h. 82 {
83 // we pass the ownership to C++
85 // handle shell instance
88 // ref count the wrapper, so that the Python part of the shell instance can not go
89 // away until the C++ object gets deleted...
92 }
93 }
94 }
bool _shellInstanceRefCountsWrapper stores if the shell instance (C++) owns the wrapper with its ref count Definition PythonQtInstanceWrapper.h:129 bool _ownedByPythonQt flag that stores if the object is owned by pythonQt Definition PythonQtInstanceWrapper.h:120 bool _isShellInstance stores if the object is a shell instance Definition PythonQtInstanceWrapper.h:126 References _isShellInstance, _ownedByPythonQt, and _shellInstanceRefCountsWrapper. ◆ passOwnershipToPython()
Passes the ownership to Python. Definition at line 97 of file PythonQtInstanceWrapper.h. 98 {
100 // if the shell instance was owned by C++ and the ownership goes to Python,
101 // we need to remove the extra ref count that kept the Python part alive from the C++ side.
105 }
106 }
References _ownedByPythonQt, and _shellInstanceRefCountsWrapper. ◆ setQObject()
set the QObject pointer Definition at line 74 of file PythonQtInstanceWrapper.h. 75 {
76 _obj = object;
77 _objPointerCopy = object;
78 }
void * _objPointerCopy Definition PythonQtInstanceWrapper.h:112 QPointer< QObject > _obj pointer to the wrapped Qt object or if _wrappedPtr is set, the Qt object that wraps the C++ Ptr Definition PythonQtInstanceWrapper.h:109 References _obj, and _objPointerCopy. Member Data Documentation◆ _isShellInstance
stores if the object is a shell instance Definition at line 126 of file PythonQtInstanceWrapper.h. Referenced by passOwnershipToCPP(). ◆ _obj
pointer to the wrapped Qt object or if _wrappedPtr is set, the Qt object that wraps the C++ Ptr Definition at line 109 of file PythonQtInstanceWrapper.h. Referenced by setQObject(). ◆ _objPointerCopy
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 112 of file PythonQtInstanceWrapper.h. Referenced by setQObject(). ◆ _ownedByPythonQt
flag that stores if the object is owned by pythonQt Definition at line 120 of file PythonQtInstanceWrapper.h. Referenced by passOwnershipToCPP(), passOwnershipToPython(), and PythonQtConvertListOfKnownClassToPythonList(). ◆ _shellInstanceRefCountsWrapper
stores if the shell instance (C++) owns the wrapper with its ref count Definition at line 129 of file PythonQtInstanceWrapper.h. Referenced by passOwnershipToCPP(), and passOwnershipToPython(). ◆ _useQMetaTypeDestroy
stores that the owned object should be destroyed using QMetaType::destroy() Definition at line 123 of file PythonQtInstanceWrapper.h. ◆ _wrappedPtr
optional C++ object Ptr that is wrapped by the above _obj Definition at line 115 of file PythonQtInstanceWrapper.h. The documentation for this struct was generated from the following file: Generated on for PythonQt by | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||