18
18
bool has_attr = PyObject_HasAttrString(pyParent, qPrintable(name));
19
19
Shiboken::AutoDecRef pyChild(Shiboken::Converter<QObject*>::toPython(child));
21
PyObject_SetAttrString(pyParent, qPrintable(name), PyWeakref_NewProxy(pyChild, 0));
24
24
_populate_parent(pyChild, qobject_cast<QObject*>(child));