Skip to content

QML Language Server for Qt Creator 14 & 15

Marko Stanojevic edited this page Jan 6, 2025 · 1 revision

Creating .qmlls.ini Files for Improved QML Development

Overview

By generating .qmlls.ini files in MMaterial (or your respective modules), you can:

  • Avoid false warnings
  • Enable auto-complete functionality for QML

Before: image

After: image

Steps to Generate .qmlls.ini

  1. Open your Projects in Qt Creator (or your IDE).
  2. Go to Build > CMake > Current Configuration.
  3. Select Add > Boolean.
  4. Enter DQT_QML_GENERATE_QMLLS_INI for the name.
  5. Set its value to ON.
  6. Rebuild your project.

Once rebuilt, Qt will automatically create the necessary .qmlls.ini files within the build output, improving code analysis and auto-completion features.


References

For more information, see the official Qt documentation:
Qt QML Generate .qmlls.ini Variable (Qt 6.7)

Official Qt-s setup tutorial: https://www.qt.io/blog/issues-with-qml-language-server-integration-in-qt-creator-14.0-and-15.0