News

Qt creator 4.8 beta released, adds language server protocol

2 min read

The Qt team announced the release of Qt creator 4.8 beta yesterday. It includes generic programming language support and some more C++ experimental features since 4.7.

Generic programming languages in Qt creator 4.8 beta

In Qt Creator 4.8 Beta experimental support for language server protocol (LSP) is introduced. Many programming languages have a language server, with Go also having plans to include it. An LSP provides features like auto code complete and reference finding in IDEs.

Addition of LSP means that by providing a client for the language server protocol, Qt Creator gets some support for many programming languages. Currently the Qt Creator supports code completion, highlighting of the symbol under the cursor, and jumping to the symbol definition. It also integrates diagnostics from the language server. Highlighting and indentation are still provided by the generic highlighter.

The client is tested with Python for the most part. Currently, there is no support for language servers requiring special handling.

C++ support

There are some C++ experimental features add in this release.

Editing compilation databases

A compilation database is a list of files and compiler flags used to compile them. You can now open a compilation database as a project solely for editing and navigating code. You can try it by enabling the CompilationDatabaseProjectManager plugin.

Clang format based indentation

Auto-indentation is done via LibFormat which is the backend used by Clang format. To try this, enable the ClangFormat plugin.

Cppcheck diagnostics

The diagnostics generated by the Cppcheck tool is integrated into the editor. Enable the Cppcheck plugin to use it. In addition to the many fixes, the Clang code model can now jump to the symbol indicated by the auto keyword. This also allows to generate a compilation database from the information the mode model has. This can be done via Build | Generate Compilation Database.

Debugging

Now there is support for running multiple debuggers on one or more executables simultaneously. When multiple debuggers are running, you can switch between them with a new drop-down menu in Debug mode.

More about various improvements and fixes can be found in the changelog.

For further details, visit the Qt Blog. Qt creator 4.8 can be downloaded from the Qt website.

Read next

Qt 3D Studio 2.1 released with new sub-presentations, scene preview, and runtime improvements

How to create multithreaded applications in Qt

How to Debug an application using Qt Creator

Prasad Ramesh

Data science enthusiast. Cycling, music, food, movies. Likes FPS and strategy games.

Share
Published by
Prasad Ramesh

Recent Posts

Top life hacks for prepping for your IT certification exam

I remember deciding to pursue my first IT certification, the CompTIA A+. I had signed…

3 years ago

Learn Transformers for Natural Language Processing with Denis Rothman

Key takeaways The transformer architecture has proved to be revolutionary in outperforming the classical RNN…

3 years ago

Learning Essential Linux Commands for Navigating the Shell Effectively

Once we learn how to deploy an Ubuntu server, how to manage users, and how…

3 years ago

Clean Coding in Python with Mariano Anaya

Key-takeaways:   Clean code isn’t just a nice thing to have or a luxury in software projects; it's a necessity. If we…

3 years ago

Exploring Forms in Angular – types, benefits and differences   

While developing a web application, or setting dynamic pages and meta tags we need to deal with…

3 years ago

Gain Practical Expertise with the Latest Edition of Software Architecture with C# 9 and .NET 5

Software architecture is one of the most discussed topics in the software industry today, and…

3 years ago