Hi,

2011/6/27 Carlo Giesa <[email protected]>:
> [...] I cam across this
> post (http://nathanhorne.com/?p=298) where a workaround of the same problem
> is explained, but for the PyQt package, so I wondered, if there is a similar
> trick that could be used with PySide.
>
> Just for your information:
> The method "apiUI.MQtUtil.mainWindow()" returns a <Swig Object of type
> 'QWidget *'> and we can cast its memory address with long().

AFAICT, you are looking for the Shiboken equivalent to
"sip.wrapinstance()". On the C++ side, I think it's
"Shiboken::Converter<QObject*>::toPython()", I'm not sure if this is
exposed on the Python level. Maybe it should be? Otherwise you could
write your own little wrapper module using e.g. SWIG to expose this
conversion function to Python.

Related thread: http://lists.pyside.org/pipermail/pyside/2011-June/002562.html

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

Reply via email to