From 7bb49eabdf8d86567660c8825892eb323fa6e674 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Wed, 25 Feb 2026 16:11:53 +0100 Subject: Add .qmlformat.ini, qmlls support, and format QML files - Enable QT_QML_GENERATE_QMLLS_INI for QML Language Server support - Add IMPORT_PATH to demo's qt_add_qml_module so .qmlls.ini includes the local build QML directory alongside the Qt system path - Add editor setup section to README with qmlls and qmlformat guidance - Add QML formatting section to French guide - Reformat demo QML files with .qmlformat.ini (line wrapping at 80 cols) --- docs/guide-qml.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs') diff --git a/docs/guide-qml.md b/docs/guide-qml.md index 1bbe0f5..6c92b64 100644 --- a/docs/guide-qml.md +++ b/docs/guide-qml.md @@ -316,3 +316,9 @@ Les propriétés `Bobink.pkiDir`, `Bobink.certFile` et `Bobink.keyFile` sont aus | Lister les serveurs | `Bobink.startDiscovery()` puis `Bobink.servers` | Pour un exemple concret et complet, consultez les fichiers `demo/Main.qml` et `demo/NodePage.qml`. + +## Configuration de Qt Creator + +**Autocomplétion et diagnostics QML** — activez le serveur de langage QML : Édition > Préférences > Client de langage > QML Language Server. + +**Formatage QML** — un fichier `.qmlformat.ini` est inclus à la racine du projet. Depuis le terminal, `qmlformat` le détecte automatiquement : `qmlformat -i fichier.qml`. Qt Creator ne respecte pas ce fichier ni ses propres réglages de style lors du formatage ([QTCREATORBUG-29668](https://bugreports.qt.io/browse/QTCREATORBUG-29668)) — utilisez la ligne de commande à la place (désolé les gars). -- cgit v1.2.3