Created
February 12, 2012 14:55
-
-
Save nowrep/1808911 to your computer and use it in GitHub Desktop.
Listing all available plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QStringList availablePlugins = mApp->plugins()->getAvailablePlugins(); | |
QStringList allowedPlugins = mApp->plugins()->getAllowedPlugins(); | |
foreach(const QString & fileName, availablePlugins) { | |
PluginInterface* plugin = mApp->plugins()->getPlugin(fileName); | |
if (!plugin) { | |
continue; | |
} | |
// You now have plugin variable that can represent one plugin | |
plugin->pluginName(); | |
plugin->pluginAuthor(); | |
plugin->pluginInfo(); | |
plugin->pluginDescription(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment