[Qt-interest] QObject based plugins
Andreas Pakulat
apaku at gmx.de
Wed Aug 19 13:42:26 CEST 2009
On 19.08.09 12:28:53, Andre Somers wrote:
> Let me rephrase my question then:
> I have a series of interfaces that plugins can implement. There is one
> main, basic interface, and a series of smaller, secundairy interfaces
> that the plugins can *additionally* implement. These interfaces are
> defined in a header that is included from the main codebase by the
> plugins. I am using QPluginLoader::instance() and the
> Q_DECLARE_INTERFACE and Q_INTERFACES macro's to define and load the
> plugins.
> Is there some way to make my primairy interface QObject derived, so I
> can define the needed signals and slots in the interface?
That should work as long as your plugin class only derives from this
primary interface and the additional interfaces and not from QObject
directly.
Andreas
--
Artistic ventures highlighted. Rob a museum.
More information about the Qt-interest-old
mailing list