Quote Originally Posted by zuck View Post
Why? If ExampleApp inherits directly from pkApplication the situation is similar to EchoPlugin example in the Qt documentation, isn't it?
Maybe "expected" wasn't the right word... "intuitive" would have been a wiser choice I guess.

Quote Originally Posted by zuck View Post
plugin loading fails (it returns a null pointer instead of a pkApplication pointer).
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 (qobject_cast does not work like dynamic_cast, it uses meta object data to check the validity of the cast and then "brute force" casting if the checks succeed).