[Interest] Anything like QCA::applicationDirPath() for libraries?
Kishore Jonnalagadda
kitts.mailinglists at gmail.com
Thu Nov 10 13:16:21 CET 2011
On Nov 10, 2011 2:05 PM, "Mandeep Sandhu" <mandeepsandhu.chd at gmail.com>
wrote:
>
> > The library, however, may not always be at a fixed location relative to
the
> > executable as my executive has an option to receive the plugin path as
a cmd
> > line option.
>
> How about passing this path, given to you via the cmdline, to the
> plugin. The plugin can then add the relative path of the binary to it
> and invoke it.
That's an option but since the the application only knows of the
plugininterface class that each plugin implements, I would have to modify
the interface API which would also affect all other plugins. I'd like to
avoid that.
Currently, I'm going to solve my use case by adding a method to my plugin
manager class that can be used to query the path of any loaded plugin.
But my question is still open... anything similar to applicationDirPath()?
Cheers!
Kishore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20111110/869b1846/attachment.html>
More information about the Interest
mailing list