Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

  • inlined in the code editor
  • in a pop-up appearing when hovering over an icon on the left side

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.

like image 933
AMA Avatar asked Jan 11 '18 10:01

AMA


1 Answers

For Qt Creator 4.7.0, you have to go: Tools > Options > Text Editor > Display

And then uncheck the 'Line annotations' option

like image 183
Waldez Junior Avatar answered Nov 09 '22 23:11

Waldez Junior