On Monday 04 April 2011 22:48:14 kungfuelmosan wrote:
> 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?

The only dependency is QtCore, QtGui and Shiboken itself, there are a lot of 
templates for sure, but if you don't instantiate them they will behave.
 
> 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

-- 
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to