[PyQt] Passing a QWidget* wrapped in a PyCObject from a C++ program?
lallousz-pyqt4 at yahoo.com
Mon Oct 18 10:45:07 BST 2010
I have a C++ program that creates a QWidget* and can return that to Python.
I want to pass that QWidget * to PyQt so that the newly created widgets
have this widget as their parent. How to do that?
return PyCObject_FromVoidPtr(theWidget, NULL)
Now is it possible to get this QWidget* and give to PyQt / QWidget class?
More information about the PyQt