Qt Creator 4.14: What's new in C++ support?
December 18, 2020 by Christian Kandeler | Comments
As announced earlier, we have released Qt Creator 4.14 this week. While a full change log is available, I think it's worthwhile to take a closer look specifically at some of the improvements to our C++ support.
Color-coded search results
When collecting usages of a variable via the "Find References to Symbol" action, one is often interested in the type of usage, for instance whether the variable is read or written. This information is now much easier to spot at first glance, because we analyze the context of each usage and use different colors in the search result window depending on the type of access. As usual, the colors can be customized in the text editor settings.
Automatic invocation of clang tools
Qt Creator 4.14 brings back the possibility to let the clang-tidy and clazy tools run automatically on the current document. This feature had already been present in earlier versions, but caused unwanted side effects and therefore got removed at some point. It is now back with an improved back-end that does not slow down the code model anymore. Of course, it is still possible to explicitly invoke the analyzers for the whole project (or selected parts thereof) via the "Debug" pane.
- It is now possible to create implementations for all member function declarations of a specific class in one go.
- Similarly, you can now create getters and/or setters for all class members at once.
- In some coding conventions, using-directives are frowned upon. These can now be removed (while keeping the code valid, of course). Thanks to Leander Schulten for this contribution.
- Missing class members can now be created on demand from a point of use. This is currently limited to initializations inside a constructor.
- We now detect if a completion request happens at the second argument of a connect() call and in that case offer only signals, as nothing else can legally appear there.
- The "New C++ Class" wizard now has knowledge about the code model and can provide completion for namespaces and class names (when choosing a base class).
- When renaming a header file via the project tree, its include guards are automatically adapted (thanks to Miklós Márton for this contribution).
- In addition to new features such as the ones mentioned above, we also fixed about 50 bugs in areas such as highlighting, completion and refactoring.
- The official release now ships clang 11, which should result in improvements particularly with modern code bases.
Qt Creator 4.14 comes with noticeably better C++ support, due to a number of useful new features and fewer bugs. Upgrade now for an improved developer experience.
Subscribe to our newsletter
Try Qt 6.4 Now!
Download the latest release here: www.qt.io/download.
Qt 6 is the productivity platform for the future, with next-gen 2D & 3D UX and limitless scalability.
Explore Qt World
Check our Qt demos and case studies in the virtual Qt World
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Näytä tämä julkaisu Instagramissa.
Want to build something for tomorrow, join #QtPeople today! We have loads of cool jobs you don't want to miss! http://qt.io/careers #builtwithQt #software #developers #coding #framework #tool #tooling #C++ #QML #engineers #sales #tech #technology #UI #UX #CX #Qt #Qtdev #global #openpositions #careers #job
Henkilön Qt (@theqtcompany) jakama julkaisu