c++clangqt-creator

Is there an option to hide clang inline warnings in QtCreator?


Question

Can QtCreator be configured hide warnings in the editor window while still showing the warning icon on the left side?

Description

QtCreator 4.5 with Clang Code Model enabled shows warnings in 2 locations:

In my opinion the former clutters GUI and the latter is both sufficient and less intrusive.

Here's an example: Inline warning in QtCreator

I looked at QtCreator options including Code Model options and could not find any setting for that.


Solution

  • Options > Text Editor > Display > Annotation next to line.

    It helps me in Qt Creator 4.4.1.