๐๐ญ ๐‚๐ซ๐ž๐š๐ญ๐จ๐ซ ๐ฌ๐ฉ๐ž๐ฅ๐ฅ๐œ๐ก๐ž๐œ๐ค โ€” ๐ง๐จ๐ฐ ๐ฐ๐ข๐ญ๐ก ๐๐Œ๐‹ ๐ฌ๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ

Written by  on July 8, 2026 

I never wrote a #QtCreator #plugin before. Somehow I always avoided that, because first you have to set up your environment, then build a husk, make it build, yada yada.

But the spellchecker plugin from Carel Combrink was missing support for QML-type files for years now. C++ parsing existed, #QML did not.

๐—ฆ๐—ผ ๐—œ ๐—ฒ๐˜…๐—ฝ๐—ฎ๐—ป๐—ฑ๐—ฒ๐—ฑ ๐—ถ๐˜.

New QML parser added next to the existing C++ parser. As you know: QML is different from C++ ๐Ÿ˜‰

It now scans QML comments and user-visible string literals:
* // line comments
* /* block comments */
* double-quoted strings
* single-quoted strings
* template literals

It also tries hard to not be annoying. It ignores QML/JavaScript code tokens like imports, ids, property names, bindings, and component names. URLs, emails, pure numbers, color values, and all-caps words are filtered out as well.

Source positions are preserved, so underlines and replacements land where they should. It works for current-file and project-wide checks, with background processing, reparsing, and settings for comments and string literals.

Lots of #testing. Unit tests, yes. But also manual testing, because certain aspects were not part of my initial implementation plan. As always.

So now you can use any Hunspell dictionary to check your QML files for typos and get them fixed.

Typos in code and comments are a real concentration breaker while reading code.

๐— ๐—ถ๐˜€๐˜€๐—ถ๐—ผ๐—ป ๐—ฑ๐—ผ๐—ป๐—ฒ. ๐—”๐—ป๐—ผ๐˜๐—ต๐—ฒ๐—ฟ ๐˜๐—ต๐—ถ๐—ป๐—ด ๐—น๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ฒ๐—ฑ. ๐—”๐—ป๐—ฑ ๐—บ๐—ฎ๐˜†๐—ฏ๐—ฒ ๐˜๐—ต๐—ฒ ๐—ฝ๐—ฎ๐˜๐—ฐ๐—ต ๐—ถ๐˜€ ๐—ฎ๐—ฐ๐—ฐ๐—ฒ๐—ฝ๐˜๐—ฒ๐—ฑ.

If someone really wants to check the patch themselves on GitHub:
https://github.com/CJCombrink/SpellChecker-Plugin/pull/197

Thanks to Carel Combrink and the other contributors for the existing work this builds on.

๐’๐ญ๐š๐ง๐๐ข๐ง๐  ๐จ๐ง ๐ญ๐ก๐ž ๐ฌ๐ก๐จ๐ฎ๐ฅ๐๐ž๐ซ๐ฌ ๐จ๐Ÿ ๐ ๐ข๐š๐ง๐ญ๐ฌ.

#Spellchecking

 

Category : QML โ€ข Qt โ€ข QtCreator