[Interest] Getting at the metadata (or simply the file names) of currently loaded plugins

Thiago Macieira thiago.macieira at intel.com
Wed Dec 27 20:51:33 CET 2017


On quarta-feira, 27 de dezembro de 2017 15:08:35 -02 René J.V. Bertin wrote:
> Hi,
> 
> Is there a way to access the file names or, better yet, the metadata of the
> plugins that are currently loaded? QPluginLoader::staticInstances() and
> QPluginLoader::staticPlugins() return empty lists for me. Maybe they're
> supposed to exclude the platform, platform integration and style plugins
> and whatever other plugins are loaded in simple applications that don't
> load any plugins of their own?

Those lists are probably empty because you don't have any staticplugins 
compiled in. Remember: staticplugins are not plugins. They are regular, static 
libraries whose only access point is via the plugin loader mechanism.

If you poke through the internals of QPluginLoader, you'll find it. See the 
QLibraryStore global static instance in qlibrary.cpp.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list