Qt Qml 工具

Qt Qml 模块提供了一系列工具和实用程序,以增强开发人员和设计人员的体验,其中还包括 Qt 使用的一些内部工具。以下各节简要概述了这些工具和实用程序,并提供了有关每种工具和实用程序其他信息的链接。

开发人员工具

Qt Qml 模块提供的一系列工具,旨在方便 QML 开发人员在不同开发阶段的工作。这些工具包括

QML Language Server

帮助您在最喜欢的支持 LSP 的编辑器中编写代码的工具。

qmlformat

根据 QML 编码惯例自动格式化 QML 文件的工具。

qmllint

用于验证 QML 文件语法和警告反模式的工具。

qmlprofiler

从应用程序中检索 QML 跟踪数据的工具。

设计工具

Qt Qml 模块还提供了面向用户的工具,可帮助设计人员快速制作原型,从而提高他们的工作效率。这些工具包括

qml

加载 QML 文档的工具,如果您的 QML 文档包含可视化项目,该工具会创建一个窗口来显示场景。

qmlpreview

为 QML 文件提供实时更新预览的工具。

svgtoqml

将 SVG 文档转换为 QML 文件的工具。

内部工具

某些实用工具不用于直接与用户交互。相反,它们都是由构建系统调用,以增强其功能和能力。

QML script compiler

编译 QML 函数和表达式的工具。

QML type compiler

提前将 QML 类型编译为 C++ 的工具。

qmlcachegen

提前编译 QML 文档的工具。

qmlimportscanner

扫描目录内 QML 文件以查找 QML 导入依赖关系的工具。

qmltyperegistrar

注册 C++ 类以便从 QML 中使用的工具。

所有 QML 工具

QML Language Server

帮助你在最喜欢的支持 LSP 的编辑器中编写代码的工具。

QML script compiler

在 QML 中编译函数和表达式的工具。

QML type compiler

提前将 QML 类型编译为 C++ 的工具。

qml

一个加载 QML 文档的工具,如果 QML 文档包含可视化项目,它还能创建一个窗口来显示场景。

qmlcachegen

提前编译 QML 文档的工具。

qmlformat

根据 QML 编码惯例自动格式化 QML 文件的工具。

qmlimportscanner

扫描目录内 QML 文件以查找 QML 导入依赖关系的工具。

qmllint

用于验证 QML 文件语法和警告反模式的工具。

qmlpreview

为 QML 文件提供实时更新预览的工具。

qmlprofiler

从应用程序中检索 QML 跟踪数据的工具。

qmltyperegistrar

注册 C++ 类以使其可从 QML 中使用的工具。

svgtoqml

将 SVG 文档转换为 QML 文件的工具。

© 2025 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.