pyside/Shiboken

interface-type

fabiencastan opened this issue · 2 comments

Hi,

From the documentation of apiextractor, there is something dedicated to specify pure virtual classes:
http://www.pyside.org/docs/apiextractor/typesystem_specifying_types.html#interface-type
We have tried to use it but the generated wrapping tries to create an instance in the init function: Sbk_myNamespace_MyClass_Init().
So it seems to be ignored by shiboken, as it's written in the pyside history: "All interface-types replaced by object-types, because shiboken ignores interface-types."

What is the best way to expose an abstract class?

Regards,
Fabien

Hi again,

This error was due to a "unbinded" type used in one of the method of my pure virtual class (I forgot to declare it as a primitive type inside my typesystem xml file). Compilation was okai after correcting this.
By the way, I made a diff on generated wrappers using and tags and the code is exactly the same.

Is there however a reason to use interface-type instead of object-type? PySide typesystem only use object-type.
Is interface-type deprecated ?