[Qt-interest] QObject based plugins
Andre Somers
andre at familiesomers.nl
Wed Aug 19 10:55:18 CEST 2009
Hi,
In my application, I am using a lot of plugins. I am currently using
QPluginLoader and the Q_DECLARE_INTERFACE macro to define the interface.
However, I find the system a bit limited. While my plugins turn up as
QObjects and I can give them signals and slots, I can only do that in
the specific implementation. The interface itself is not a QObject.
I would really like to be able to create an interface complete with all
the wonderfull features Qt offers: signals, slots, introspection, etc. I
know I can cast the loaded plugins to QObject and connect to signals and
slots I know are (should be) there, but that is not a very nice way of
working. That means that the interface I define, is not really the
complete interface.
Is there some way to make the plugins right from the interface
definition real QObjects? And does that also work if a plugin object
implements more than one QObject-like interface? Am I missing something
obvious?
Thanks,
André
More information about the Qt-interest-old
mailing list