Qt 发布程序

本人Qt工程在F:\QT\login目录下,工程名untitled1,编译好的文件也是untitled1.exe

1.把release编译好的.exe结尾的运行程序(我这边是untitled1.exe)到新文件夹(fabu)下

2.打开Qt 5.9.1 for Desktop(我安装版本是Qt 5.9.1) ,进入到.exe文件夹下(cd /d F:\QT\login\fabu)

3.windeployqt helloqml.exe --qmldir C:\Qt\Qt5.4.0\5.4\mingw491_32\qml就行了。(由于我是Qt Quick Application)

注释:Qt Widgets Application只需输入windeployqt helloqml.exe即可

(尝试添加了Qt quick自带虚拟键盘功能,发布之后,弹不出虚拟键盘,程序崩溃,应该是缺少环境。找到方法下次再说明)

详情:https://www.cnblogs.com/findumars/p/7019167.html

猜你喜欢

转载自blog.csdn.net/qq_36809882/article/details/81068785