Additionally we upgraded the LLVM for the Clang code model to version 7.0, and our binary packages to the Qt 5.12 prerelease.

Get Qt Creator 4.8 Beta2

The opensource version is available on the Qt download page, and you find commercially licensed packages on the Qt Account Portal. Qt Creator 4.8 Beta2 is also available under Preview > Qt Creator 4.8.0-beta2 in the online installer. Please post issues in our bug tracker. You can also find us on IRC on #qt-creator on chat.freenode.net, and on the Qt Creator mailing list.

18 comments

I think the code navigation and Clang-based code model gets worse with each release, unfortunately.

With the current 4.8 b2, I can no longer ctrl+click on many symbols to “follow symbol” – nothing happens, basically.

Also, the Clang-based code model infests my editor with very many false semantic issues, e.g. “`auto` type specifier is a C++11 extension”, while my project is clearly setup correctly for C++11 features in CMake.

I’m using CMake + Ninja + MSVC 2017 on Windows 10.

I know the correct way to approach this is to use the bug tracker, but I feel the UI of the tracker is very bad and doesn’t really allow for proper searching of duplicates. Googling the issue brings up many hits but no real answers, unfortunately.

Thanks for the great IDE, otherwise – I wish the above issues could be somehow resolved, as I feel they’ve become more and more of a blocker for me (VS Code starts to look pretty good at this point, as an alternative).

The above is followed by a very long list of include paths, up to 4100 characters – is there an upper limit to the string and will it handle include paths with spaces (such as Windows SDK default install locations) correctly? Also, is the -std=c++98 defined on purpose?

Before trying to debug why Clang code model does not work properly (i.e. why there is -std=98 in command line) you have to know how to specify proper C++ standard for your project. Apparently there is no such option. The Internet is full of topics about the same question without an answer: How to specify C++ standard for Clang code model for your project in Qt Creator?
I am talking about generic project without a build system.

You specify the C++ standard in the build system files of your project, which is used for building. If Qt Creator does not pick that up correctly for a directly supported build tool (qmake/cmake/qbs/…), it is a bug.

That said, “Generic Projects” in Qt Creator do not define a build system, and do not provide a way to set any compiler flags.

So we just found a root cause. In reality typical project does not need to have a build system known to the IDE. And even if some project, lets say, CMake-based, in major cases it could not be opened in QtCreator as is without issues.
Authors of the generic projects in QtCreator were understanding this, providing full featured IDE for such cases: Kits, build configuration with command sequence, run configurations, environment setup, build output parser connected to the issues list, debugger. Common include directories and defines. Per-project coding style and Clang code model parameters.
But this does not make much sense without trivial option: C++ standard.
I really don’t understand whether this was intentional, to make Clang code model inoperable for generic projects. Or this feature is missing by mistake or lack of attention.
Do you need help to implement that?

1) working on a project, using the ui-edit-view, example: moving a widget there out of current position
2) expected that the project and the values / entries stay the same except new xy-values on that particular widget moved
3) magically the new setBrush/…’PlaceholderText’ is a new entry on *all* widgets and has to be deleted manually (ui.xy* files) to compile the project without errors on *each* widget implemented.