On Thursday 14 July 2011 16:24:34 Daniel Smith wrote: > Hey Hugo, > > Still no luck (after adding the modify-function) unfortunately : > > nabstractnode_wrapper.cpp: In constructor > 'NAbstractNodeWrapper::NAbstractNodeWrapper()': > nabstractnode_wrapper.cpp:37: error: no matching function for call > to 'NAbstractNode::NAbstractNode()'
Could you attach the header file of NAbstractNode and the type system file you
wrote? or send direct to my email to not pollute the mailing list with
attachments.
>
> And this is with pyside-1.0.4 btw.
>
> Cheers,
> D
>
> On 15/07/11 05:17, Hugo Parente Lima wrote:
> > On Wednesday 13 July 2011 21:51:06 Daniel Smith wrote:
> >> Hey All,
> >>
> >> I have a class (NAbstractNode) that publicly subclasses QGraphicsItem
> >>
> >> and doesn't have a default constructor :
> >> class NAbstractNode : public QGraphicsItem {
> >>
> >> public :
> >> // Constructors
> >> NAbstractNode(const string&name);
> >>
> >> }
> >>
> >> and an object-type entry in my typesystem file :
> >> <object-type name="NAbstractNode" copyable="no"/>
> >>
> >> which generates this wrapper class :
> >> NAbstractNodeWrapper::NAbstractNodeWrapper() : *NAbstractNode()* {
> >>
> >> // ... middle
> >>
> >> }
> >
> > Shiboken shouldn't generate this, this may be a bug, as a workaround you
> > could add to your type system:
> >
> > <object-type name="NAbstractNode">
> >
> > <modify-function signature="NAbstractNode()" access="private" />
> >
> > </object-type>
> >
> >> and as you can see the wrapper class tries to use the default
> >> constructor for NAbstractNode, which doesn't exist, and compiler chaos
> >> ensues.
> >>
> >> Am I doing something wrong? (highly likely) / Is there some secret sauce
> >> I can add to my typesystem file to get this going?
> >>
> >> Cheers,
> >> D
--
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PySide mailing list [email protected] http://lists.pyside.org/listinfo/pyside
