@@ -416,8 +416,11 PyObject* PythonQtPrivate::wrapPtr(void* ptr, const QByteArray& name) | |||
|
416 | 416 | QObject* qptr = (QObject*)ptr; |
|
417 | 417 | // if the object is a derived object, we want to switch the class info to the one of the derived class: |
|
418 | 418 | if (name!=(qptr->metaObject()->className())) { |
|
419 | registerClass(qptr->metaObject()); | |
|
420 | 419 | info = _knownClassInfos.value(qptr->metaObject()->className()); |
|
420 | if (!info) { | |
|
421 | registerClass(qptr->metaObject()); | |
|
422 | info = _knownClassInfos.value(qptr->metaObject()->className()); | |
|
423 | } | |
|
421 | 424 | } |
|
422 | 425 | wrap = createNewPythonQtInstanceWrapper(qptr, info); |
|
423 | 426 | // mlabDebugConst("MLABPython","new qobject wrapper added " << " " << wrap->_obj->className() << " " << wrap->classInfo()->wrappedClassName().latin1()); |
General Comments 0
You need to be logged in to leave comments.
Login now