补充 --qmldir 参数.

Signed-off-by: Rick.Chan <cy@haoan119.com>
This commit is contained in:
Rick.Chan 2022-12-11 22:26:13 +08:00
parent 4de852e0d3
commit c67057f0f7
1 changed files with 4 additions and 3 deletions

View File

@ -56,10 +56,11 @@ If you do not use qmake, the necessary steps are: first, create an .rc file and
## Windows 下程序打包
可通过
Qt 提供了导出 Qt 环境变量的命令行脚本比如“Qt 5.15.2 (MinGW 8.1.0 64-bit)”,运行该脚本可进入带有 Qt 环境变量的命令行界面,之后可通过如下命令打包程序(编译生成的可执行程序需要拷贝到\<Package Output Path\>
```bash
<QT Install Path>\<Tool Chain>\bin\windeployqt.exe <Exe File>
cd <Package Output Path>
windeployqt <Exe File> [--qmldir <Project QML File Path>]
```
命令找出依赖的库
Qt 自带的打包程序会添加额外的库,如果想进一步减小体积,可手动筛减