It turned out to not be related to the converters refactoring work, but Marcelo did indeed know how to solve it. Essentially annotating the GeglNode* as primitive-type and providing a Shiboken::Converter (implemented using the pygobject C-api) was enough.
Currently I had to "typedef GeglNode * GeglNodePtr" to avoid the generator being confused by the pointer. This is probably something that should be fixed? Thanks for the help! Btw, I posted a short blogpost here on this topic. http://www.jonnor.com/2011/08/combining-pyside-and-pygobject-introspection-bindings/ On 11 August 2011 18:37, Renato Araujo Oliveira Filho <[email protected]> wrote: > Hi Jon, > > Marcelo Lira is working on PySide converters re factory, I think is a > good time to discuss this kind of features, > Look for him on PySide irc channel his nickname is "setanta". > > BR > > On Thu, Aug 11, 2011 at 12:02 PM, Jon Nordby <[email protected]> wrote: >> (top posting) Anyone has any ideas on how to solve below issue? Any >> help would be welcomed. >> >> On 3 August 2011 20:13, Jon Nordby <[email protected]> wrote: >>> Hi, >>> I'm working on gegl-qt, a convenience library for using gegl[2] in Qt >>> applications. gegl-qt provides a couple of Qt widgets that I would >>> like to provide Python bindings for using PySide. >>> >>> The issue I'm facing is that most of the widgets provided have methods >>> with the following signature. >>> >>> GeglNode *inputNode() const; >>> void setInputNode(GeglNode *node); >>> >>> where GeglNode is a GObject provided by gegl. Shiboken ignores these >>> because it does not know what to do with the GeglNode *. gegl already >>> has Python bindings using GObject Introspection, and I wish to make >>> use of these. So I somehow need to tell Shiboken about the mapping >>> between the C type and the existing Python type. How do I achieve >>> this? >>> >>> The work-in-progress, including a test case, can be found at >>> http://git.gnome.org/browse/gegl-qt/commit/?h=pyside >>> >>> 1. http://git.gnome.org/browse/gegl-qt/ >>> 2. http://www.gegl.org >>> >>> -- >>> Jon Nordby - www.jonnor.com >>> >> >> >> >> -- >> Jon Nordby - www.jonnor.com >> _______________________________________________ >> PySide mailing list >> [email protected] >> http://lists.pyside.org/listinfo/pyside >> > > > > -- > Renato Araujo Oliveira Filho > Instituto Nokia de Tecnologia - INdT > -- Jon Nordby - www.jonnor.com _______________________________________________ PySide mailing list [email protected] http://lists.pyside.org/listinfo/pyside
