Maybe "expected" wasn't the right word... "intuitive" would have been a wiser choice I guess.
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).






Reply With Quote
Bookmarks