QT_QML_GENERATE_QMLLS_INI

QT_QML_GENERATE_QMLLS_INI is a boolean that describes whether qt6_add_qml_module() calls generate .qmlls.ini files inside the source folder. If .qmlls.ini files already exists in the source folder, then they are overwritten.

Note: Using QT_QML_GENERATE_QMLLS_INI requires a CMake version >= 3.19.

These .qmlls.ini files contain the path to the last configured build directory, and is needed by QML Language Server to find user defined modules. See also QML Language Server about the other ways of passing build folder to QML Language Server.

Note: The files generated by QT_QML_GENERATE_QMLLS_INI are only valid for the current configuration and should be ignored by your version control system. For git, this can be done by adding .qmlls.ini to your .gitignore, for example.