Hey All,

Can anyone point me in the right direction to some info on running
PySide embedded in a C++ Qt Application?

I have a Python C Extension library that I'm converting from PyQt/sip
to PySide/Shiboken and in one part I have a PyObject* passed into my C
Extension function that im expecing to be a PySide QWidget object, is
there a way I can get the internal C++ QWidget pointer from the python
wrapper?

Some googling led me to try :

#include <pyside_qtgui_python.h>

PyObject *someWrappedObject = ... ;

QWidget *w = Shiboken::Converter<QWidget*>::toCpp(someWrappedObject);

But the #include pyside_qtgui_python.h seems to have a million and one
dependencies so I'm not sure if this is what I;m meant to be doing?

Are there any docs on this / a nicely wrapped up public include.h for
Shiboken?

Cheers,
Daniel
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to