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
