pluginLoader.unload(); unload()函数将释放插件所占用的内存并关闭插件文件。 需要注意的是,qpluginloader只能加载基于Qt的插件。插件必须使用Qt提供的插件框架进行编写和构建,且需提供一个特定的插件接口。 总结一下,通过qpluginloader可以实现插件的动态加载和卸载,为软件提供了更高的扩展性和灵活性。在使用qplugin...
loader->unload();deleteloader;returnfalse; } 开发者ID:Esenin,项目名称:qreal,代码行数:22,代码来源:editorManager.cpp 示例10: unloadAdaptedOutputFactoryComponentInfoById ▲点赞 1▼ boolComponentManager::unloadAdaptedOutputFactoryComponentInfoById(constQString& id) {if(m_adaptedOutputFactoryComponentInfoById....
HSDEBUG("Widget creation failed - No provider.") loader->unload();deleteloader; }returnwidget; } 开发者ID:kuailexs,项目名称:symbiandump-mw1,代码行数:30,代码来源:hswidgetfactory.cpp 示例11: unloadModelComponentInfoById ▲点赞 1▼ boolComponentManager::unloadModelComponentInfoById(constQString& id...
QVERIFY(spy.isValid()); QVERIFY(loader.unload());// refcount reached 0, did really unloadQCOMPARE(spy.count(),1);// reload pluginQVERIFY(loader.load()); QVERIFY(loader.isLoaded()); PluginInterface *instance2 = qobject_cast<PluginInterface*>(loader.instance()); QVERIFY(instance2); Q...
loader->unload();deleteloader;returnfalse; } 开发者ID:Esenin,项目名称:qreal,代码行数:22,代码来源:editorManager.cpp 示例12: foreach ▲点赞 1▼ foreach (constQString &dir, dirsToCheck) { QVector<KPluginMetaData> metadataList = KPluginLoader::findPlugins(dir, ...
loader->unload();deleteloader; }returnscreensaver; } 开发者ID:cdaffara,项目名称:symbiandump-ossapps,代码行数:65,代码来源:screensaverfactory.cpp 示例2: extensionsDirectory ▲点赞 7▼ AExtensionFactoryPrivate::AExtensionFactoryPrivate() : QObject( qApp ) ...
PluginInterface *plugin = qobject_cast<PluginInterface *>(loader->instance());// loader->unload();deleteloader;returnplugin; } 开发者ID:LukasKoudela,项目名称:agros2d,代码行数:42,代码来源:global.cpp 示例14: loadPlugins ▲点赞 1▼ voidPluginManagerPrivate::loadPlugins() ...
pluginLoader->unload();deletepluginLoader; }// end if (this->isPluginCompatible(plugin))}// end if (fileRx.indexIn(entry) != -1)}// end foreach ()} 开发者ID:neoplacer,项目名称:fougtools,代码行数:35,代码来源: 示例3: loadPlugins ...