All-
I'm building an application that I'd like to have load a set of self-contained modules (compiled as Libraries and loaded through the QPluginLoader framework). Each module inheirits from QWidget and implements a custom interface of my design.
I've been successful in building such a module and having it loaded (proof-positive in that I can call functions in the library module from the application and get correct values back).
The plugin examples packaged with Qt provide hints at nearly everything I need to do, except one thing -- these modules contain UI's that need to be drawn, and at present are not.
The usual process, it seems, is to setup the interface in the constructor, having passed a parent widget to draw upon. In the plugin framework, the constructor is called with the call to QPluginLoader::loader(QString path). This does not seem to provide the means to say 'this is a graphical component -- draw it on this surface".
So -- after much introduction the question: How do I get a stand-alone QWidget-drived library plugin to draw its' components on a specified surface?
Thanks for your help!
SnarlCat
Bookmarks