This Qt application was complied by VS 2010 for the end users, but the executing application doesn't find Qt's dll. In the folder, there are QtGui4.dll and QtCore4.dll How can I solve this problem?

This Qt application was complied by VS 2010 for the end users, but the executing application doesn't find Qt's dll. In the folder, there are QtGui4.dll and QtCore4.dll How can I solve this problem?

欢迎来到 Dll 地狱!
每次使用 Qt 进行部署时,都必须确保
1)您正在编译的库是相同的版本和相同的编译器 2)与系统路径中的其他库没有冲突 3)如果您编译 Debug 您必须使用 *d.dll 版本的库
例如,请确保如果您的程序是用 VC9 编译的,那么您的 dll 也是用 VC9 编译的。
您可以通过一个名为 Dependency Walker 的非常有用的程序了解您要链接的库。http://www.dependencywalker.com/
这是您的应用程序使用与 dll 不同的版本编译。如果你从VS运行它会起作用吗?