QT_QML_SKIP_CACHEGEN

将文件排除在编译为字节码之外。

该属性自 Qt 6.2 起引入。

将此属性设置为TRUE ,可防止.qml 文件被编译为字节码。该文件仍将以未编译的形式作为资源添加到target 中(参见“缓存已编译的QML源文件”)。

另请参阅 qt_target_qml_sources。

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