Qt QPluginLoader方法的缺点是什么?

Qt QPluginLoader方法的缺点是什么?,qt,plugins,Qt,Plugins,这里是Qt Creator官方代码存储库: git克隆https://github.com/qtproject/qt-creator.git Qt Creator使用QPluginLoader QPluginLoader方法的缺点是什么?与QLibrary有什么区别?QtPluginloader如果应用程序与Qt静态链接,则不能使用 在这种情况下,您还必须静态链接到插件。如果需要在静态链接的应用程序中加载动态库,可以使用QLibrary 希望能有帮助。 致意

这里是Qt Creator官方代码存储库:

git克隆https://github.com/qtproject/qt-creator.git
Qt Creator使用
QPluginLoader


QPluginLoader
方法的缺点是什么?与
QLibrary
有什么区别?

QtPluginloader如果应用程序与Qt静态链接,则不能使用

在这种情况下,您还必须静态链接到插件。如果需要在静态链接的应用程序中加载动态库,可以使用QLibrary

希望能有帮助。 致意