Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- #include "PluginLoader.hpp"
-
- PluginLoader::PluginLoader(QObject *parent)
- : QObject(parent)
- {
- }
-
- QObject* PluginLoader::loadPlugin(const QString& path)
- {
- if (m_loader.isLoaded()) {
- m_loader.unload();
- }
-
- m_loader.setFileName(path);
- return m_loader.instance();
- }
-
- bool PluginLoader::unloadPlugin()
- {
- return m_loader.unload();
- }
-
- QString PluginLoader::errorString() const
- {
- return m_loader.errorString();
- }
|