QML 静态分析教程

本教程介绍QQmlSA ,它是静态分析 QML 代码的 API。

通过本教程的不同步骤,我们将学习如何设置基本的 qmllint 插件,创建自己的自定义分析传递,并添加对 fixit-hints 的支持。

第一章从最基本的插件开始,接下来的章节将介绍新的概念。

本教程的源代码位于examples/qmlcompiler/tutorials/helloworld 目录。

教程章节:

  1. 基本设置
  2. 自定义通行证
  3. 修复提示

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