You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 ?
Hello @fabiencastan do you remember if you found any other solutions? when I define my abstract class as primitive, it jumps over the class and doesn't wrapp it. It doesn't even create the _wrapper.cpp
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
The text was updated successfully, but these errors were encountered: