
Originally Posted by
fullmetalcoder
Then I suppose my previous comment was accurate : QPluginLoader tries to cast the object to pkApplication using qobject_cast<> but as pkApplicationBase does not have the Q_INTERFACE macro this fails
Yes but if I move the Q_INTERFACES macro into the pkApplicationBase body nothing changes (no example window appears when i launch the server application) and the pointer is always null.
This is the error string returned by QPluginLoader:
Cannot load library [...]/libexampleapp.so: ([...]/libexampleapp.so: undefined symbol: _ZN17pkApplicationBase16staticMetaObjectE)
Cannot load library [...]/libexampleapp.so: ([...]/libexampleapp.so: undefined symbol: _ZN17pkApplicationBase16staticMetaObjectE)
To copy to clipboard, switch view to plain text mode
Bookmarks