I create a qt project in Visual Studio. The project is fully assembled and running, but the underscores hinting at errors are annoying. How to get rid of it? 
3 answers
This is due to the fact that IntelliSense does not work very well in the studio and, apparently, in this code, the studio believes that these symbols are not known to the compiler. I would recommend to update the studio, they are constantly improving this part.
If you just want to turn off the underscore, you can do it in
Tools-> Options-> Text Editor-> C / C ++ -> Advanced-> IntelliSense-> Disable Squiggles
- Somewhat not what I wanted. Your advice hides the problem, but does not fix it. - Alex
- one@Alex question is formulated as if you asked exactly this: "How to disable underscores." - D-side
In order to solve this problem, in the project settings in the top Configuration drop-down list, select All configurations. Next you need to go to Properties and configurations -> C / C ++ and in the C:\Qt\Qt5.6.0\5.6\msvc2013_64\include\QtWidgets\5.6.0\QtWidgets additional directories" manually set the paths to the QApplication library which, in my case, lies along the path C:\Qt\Qt5.6.0\5.6\msvc2013_64\include\QtWidgets\5.6.0\QtWidgets .
Who is too lazy to read, you can watch the video. But there other ways are prescribed, which in my case, the problem is not fixed.
- This is the answer link. It would be much better for future readers if you described the basic steps here. - VladD
- All the basic steps are painted. - Alex
- Oh, cool, now very useful. - VladD
Tools -> Options -> Text Editor -> Font & Colors: find at the bottom and select the "Error" at the "Color Scheme". Click "Copy", "Ok". Select No Underline at the underline section.