diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-25 16:11:53 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-25 18:08:28 +0100 |
| commit | 7bb49eabdf8d86567660c8825892eb323fa6e674 (patch) | |
| tree | bbcfb9f80fa8373dc61e63cafef30e8a664cedea /docs | |
| parent | 9507f9779809bd077705d1ad54384f714b41c122 (diff) | |
| download | BobinkQtOpcUa-7bb49eabdf8d86567660c8825892eb323fa6e674.tar.gz BobinkQtOpcUa-7bb49eabdf8d86567660c8825892eb323fa6e674.zip | |
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)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/guide-qml.md | 6 |
1 files changed, 6 insertions, 0 deletions
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). |
