可以把一堆dll文件放到程序目录下的一个自建目录里面

窦宁波大哥哥的那篇文章的这种写法还是很有参考价值的.

QString strLibPath(QDir::toNativeSeparators(QApplication::applicationDirPath()) +QDir::separator()+"plugins");

qApp.addLibraryPath(strLibPath);

比如可以把一堆dll文件放到程序目录下的一个自建目录里面,比如runtime,这样就避免了一大堆dll文件和程序在一起了,值得提倡。

http://blog.csdn.net/NRC_DouNingBo/article/details/5701586

http://blog.csdn.net/lynfam/article/details/6198670

原文地址:https://www.cnblogs.com/findumars/p/5031118.html