[PySide] Shiboken with two classes with the same name in different namespaces

Hugo Parente Lima hugo.lima at openbossa.org
Mon Jul 30 23:58:10 CEST 2012


On Thursday, July 19, 2012 10:34:08 PM Micke Prag wrote:
> I have an issue with Shiboken that I don't know how to solve.
> 
> Basically I have two classes:
> 
> namespace bb {
>   class Application: public QCoreApplication;
> }
> and
> namespace bb {
>   namespace cascades {
>     class Application: public bb::Application;
>   }
> }
> 
> My typesystem looks like this:
> <namespace-type name="bb" generate="yes">
>    <object-type name="Application" />
>    <namespace-type name="cascades">
>       <object-type name="Application" />
> 
> 
>    </namespace-type>
> </namespace-type>
> 
> When shiboken generates the binding it creates two classes with the same
> name, ApplicationWrapper (in bb_application_wrapper.cpp and
> bb_cascades_application_wrapper.cpp). Since they have the same name the
> linker complains (obviously).

A workaround would be just to rename one of the classes in the typesystem, but 
this is a bug, and it's easy to fix on the generator.
 
> I can manually fix this by editing the generated bb_application_wrapper.h
> file and put the class in the bb namespace.
> 
> Is this a bug in Shiboken or are there a workaround for this?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120730/51afd7a3/attachment.sig>


More information about the PySide mailing list