QT Windows 部署问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/nxcxl88/article/details/52751780

Qt在其他Windows平台部署的时候需要拷贝以下的DLL文件,与exe文件放置在同一个文件夹:

Qt5Core.dll

Qt5Gui.dll

Qt5Widgets.dll


如果是debug程序,则需要拷贝

Qt5Cored.dll

Qt5Guid.dll

Qt5Widgetsd.dll


如果使用了串口等,则需要拷贝如Qt5SerialPort.dll这样的文件,可根据迁移后的报错情况进行调整。

扫描二维码关注公众号,回复: 3851128 查看本文章


如果在运行时出现:

This application failed to start because it could not find or load the Qt platform plugin "windows" in "". Reinstalling the application may fix this problem.

则需要在exe文件同一文件夹下建立一个platforms文件夹,在其中放入qwindows.dll,qminimal.dll,qoffscreen.dll,如下图所示:




猜你喜欢

转载自blog.csdn.net/nxcxl88/article/details/52751780
今日推荐