One more thing as a solution given by B.Poulain:
"The problem come from the declaration of the
class IObject without the macro Q_DECLARE_INTERFACE. This macro should
be used for all objects exported outside the plugin.
If you add it, everything works fine.
If you look at the declaration of Q_DECLARE_INTERFACE, it use a slightly
different approach to make qobject_cast working across library but
without being dependant of the linker."
The IObject header file has to be added in both .pro files.
Thank you all, for your posts.
![]()
Bookmarks