Hey Guys,

Sorry its taken so long, been quite busy.

So essentially the library is a hand written Python C extension that
is meant to be imported into an existing Qt app (Autodesk Maya 2012).
The library provides functions for getting python (PySide) handles on
the applications internal (C++) QWidget's.

So the library isn't a straight up wrapper of an existing library, its
just using the library (the Maya API) internally and adding in some
'secret sauce' around it.

And yep Hugo I have recompiled with PySide-1.0.3. To be clear what I'm
doing has been working in PySide-1.0.2, this has only just stopped
working after recompiling with PySide-1.0.3

Thanks alot for the help!

Cheers,
D

On Jun 2, 5:31 am, Hugo Parente Lima <[email protected]> wrote:
> On Tuesday 31 May 2011 20:38:09 kungfuelmosan wrote:
>
>
>
>
>
>
>
>
>
> > Hey All,
>
> > So we've just updated to PySide-1.0.3 from PySide-1.0.1 and we're
> > getting a seg-fault when doing :
>
> > #include <pyside_qtgui_python.h>
> > PyTypeObject** SbkPySide_QtCoreTypes;
> > PyTypeObject** SbkPySide_QtGuiTypes;
>
> > PyObject *wrapper = Shiboken::Converter<QWidget*>::toPython(control);
>
> > Is this still a supported interface? It's an extremely powerful
> > feature, albeit an undocumented one as far as I can tell, so I'm
> > wondering if maybe I'm just exploiting an unpublicized feature, are
> > there any blog posts / docs about this (obtaining a PyObject wrapper,
> > given  a QWidget* C++ pointer) ?
>
> > Heres the top bit of my gdb back-trace :
>
> > #0  0x00007fffc85cc582 in Shiboken::BindingManager::resolveType(void*,
> > SbkObjectType*) () from /vol/apps/pyside_qt4.7_kubuntu_10_04-1.0.3_64/
> > lib/libshiboken-python2.6.so.1.0
> > #1  0x00007fffc85c7bc3 in Shiboken::Object::newObject(SbkObjectType*,
> > void*, bool, bool, char const*) () from /vol/apps/
> > pyside_qt4.7_kubuntu_10_04-1.0.3_64/lib/libshiboken-python2.6.so.1.0
> > #2  0x00007fffc74a1db7 in Shiboken::createWrapper<QWidget>
> > (cppobj=0x4e68270, hasOwnership=false, isExactType=false) at /vol/apps/
> > pyside_qt4.7-1.0.3_64/include/PySide/QtGui/pyside_qtgui_python.h:1943
> > #3  0x00007fffc74a1e49 in
> > Shiboken::ObjectTypeConverter<QWidget>::toPython (cppobj=0x4e68270)
> > at /vol/apps/pyside_qt4.7-1.0.3_64/include/shiboken/conversions.h:222
> > #4  0x00007fffc74a1bc6 in ... My Code ...
>
> > Sorry I can't provide more info / code - stupid NDA's
>
> Did you try to recompile your project after the PySide update? This could work
> due to a know issue on how we share Python types between modules.
>
> Regards
>
> --
> Hugo Parente Lima
> INdT - Instituto Nokia de Tecnologia
>
>  signature.asc
> < 1KViewDownload
>
> _______________________________________________
> PySide mailing list
> [email protected]http://lists.pyside.org/listinfo/pyside
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to