qmlpreview
Qml 预览
QML 预览工具会监听磁盘上的 QML 和 JavaScript 文件,并在文件发生任何更改时实时更新应用程序。要预览的应用程序必须已启用 QML 调试功能。更多...
| 用法 |
|---|
| qmlpreview [选项] 可执行文件 [参数...] |
选项
| 选项 | 说明 |
|---|---|
| –verbose | 显示调试信息。 |
| -h, –help | 显示命令行选项的帮助信息。 |
| –help-all | 显示帮助信息,包括通用的 Qt 选项。 |
| -v, –version | 显示版本信息。 |
| –resource <qrc 文件> | 传入一个 .qrc 文件,以帮助 qmlpreview 将资源路径解析为文件系统路径。 |
参数
| 参数 | 描述 |
|---|---|
| 可执行文件 | 加载 QML 文档的可执行文件的路径。 |
| 参数 | 可执行文件的参数 |
详细信息
启用 QML 调试
要在可执行文件上使用qmlpreview ,该可执行文件必须在构建时启用了QML调试基础设施。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.