Improving QML Coding by up to 11% with Sonnet 4! Qt AI Assistant 0.9.3 Released.

The latest Qt AI Assistant version supports Sonnet 4 for code completion and coding prompts. This release includes a few usability improvements.

Claude Sonnet 4

We have good news for those using Claude LLM for code generation! Upgrading from Claude 3.7 Sonnet to Claude Sonnet 4 improves code suggestions by up to 11%.

Sonnet 4 has gotten even better at writing QML code based on prompts, making it more likely that code suggestions will work immediately. Its performance has increased by 11% over 3.7 Sonnet to an impressive 77% against the QML100 prompt-based coding benchmark. We also noticed that Sonnet 4 has improved at suggesting QML-type MultiEffects, but it's still learning this skill.

QML100 Performance June 2025-1

 

We also benchmarked Sonnet 4 for QML Fill-in-The-Middle performance with a score of 81% according to the QML100FIM Benchmark. This results in a 5% improvement over a strong performance of 3.7 Sonnet's knowledge.

QML100FIM Performance June 2025

Code Completion Activation from Header Bar

We are adding the capability to activate (and deactivate) automatic code completion from the Qt Creator header bar for people who would like to activate code completion faster. The AI Assistant status icon also helps users identify whether the AI Assistant is active.

Due to an API dependency, this feature is only available with Qt Creator 17.

 AIAssistantStatusIcon

 

Meanwhile… we made the following other changes:

  • Qt Creator 17 is now supported.
  • We display keyboard shortcut reminders in the inline prompt window (only Qt Creator 17).
  • We increased the maximum number of output tokens to equal the maximum supported by each LLM to avoid cutting off suggestions too early.

Please note: The loading of the Qt AI Assistant plug-in might take some 60 seconds in Qt Creator. The issue has been recognised and will be fixed soon.

Additional note for users upgrading first the Qt AI Assistant on Qt Creator 16.0.2 and then upgrading afterwards to Qt Creator 17: You will see the new features such as the Code Completion Activation in the Header only after removing and re-installing the Qt AI Assistant. Apologies for the inconvenience.


Blog Topics:

Comments