QObject factory in Qt Plugin(non-creator)
Hi All,
I have desribed my problem here http://stackoverflow.com/q/9070817/538239 .. I apreciate your help.. I am out of ideas…
Thanks,
Adam
6 replies
Are you sure that you’ve red QPluginLoader documentation carefully? Maybe I did not understand you correctly but QPluginLoader::instance() returns QObject* so there is no need to create multiple interfaces. To avoid linking errors just declare signals and slots in your ProtocolInterface (which is not actually an interface since it inherits QObject) as pure virtual.
IMHO it is caused by MOC, because DummyProtocolInterface is not directly inheriting QObject and the compiler is not MOCing that class because it expects metaObject in ProtocolInterface located in daemon project… I am not sure if it could even work like this, sice ProtocolInterface.h has not-defined virtual functions(and there is probably no compilation -> no MOC ) ?? What do you say?
You must log in to post a reply. Not a member yet? Register here!

