如何使用Visual Studio在QT Designer中创建exe文件? [英] How to create exe file in qt designer with visual studio?

查看:229
本文介绍了如何使用Visual Studio在QT Designer中创建exe文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio中创建了一个qt应用程序.生成项目后,exe文件未运行,并且我收到错误消息,提示缺少许多dll文件,例如Qt5Core.dll和其他文件. 我该如何解决?

I create a qt application in visual studio. After building the project , the exe file not running and I have error message for missing a lot of dll files such as Qt5Core.dll and the others. How can I fix it?

推荐答案

让我们假设您的exe文件名位于MyApp.exe中.

let suppose your exe file name in MyApp.exe.

  • MyApp.exe复制到新文件夹中.例如myfolder.

  • copy MyApp.exe in a new folder. for example myfolder.

打开myfolder按住shift键并在myfolder的窗口中右键单击

open myfolder press shift and right click at myfolder's window

在打开的右键菜单中选择Open command window here

in opened right click menu select Open command window here

请注意 C:\Qt\Qt5.9.3\5.9.3\msvc2015_64路径取决于您安装的qt版本及其目录.

note that C:\Qt\Qt5.9.3\5.9.3\msvc2015_64 path is depend on your installed qt version and it's directory.

这篇关于如何使用Visual Studio在QT Designer中创建exe文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆