- Qt 6.12
- Qt Qml
- CMake Integration for QML
- CMake Policies for QML
- Qt 6.12.0 Reference Documentation

CMake Source File Properties for QML ◦ QTP0001

# CMake Policies for QML

Qt Qml provides several CMake policies to control backward compatibility and behavior of QML-related CMake commands.

## Available Policies

- QTP0001 - Controls QML module versioning behavior
- QTP0004 - Controls QML module output directory structure
- QTP0005 - Controls QML type registration behavior

## Setting Policies

Use `qt_policy()` or `cmake_policy()` to set these policies in your CMakeLists.txt:

     qt_policy(SET QTP0001 NEW)

See also CMake Integration for QML and qt_add_qml_module.

CMake Source File Properties for QML ◦ QTP0001