Qt How do I remove Clang Code Model?

↘锁芯ラ 提交于 2020-06-27 08:57:05

问题


I started using Qt a couple months ago. It's been fine and easy to use. Last night I updated it and something messed everything up. I could not run qmake nor figure out how to fix it. So I uninstalled and reinstalled it. Now it is using the Clang model. I'm not sure if it was before but I don't think it was. Now the autocomplete is messed up. When creating the definition of a function in a .cpp file, the autocomplete won't fill in the parameters like it used to. Also, sometimes type names will become invisible. I know there are characters there, but I can't see them. And I can no longer Ctrl + Click a variable or function to hyperlink to definitions and things. Anyways. I would love to get rid of Clang and go back to what I was using before. I've looked everywhere, but can't figure it out. I am currently using QtCreator 4.7.0 and Qt 5.11.1. Help would be appreciated. Thanks.


回答1:


Go into Help->About Plugins and uncheck the Clang code model plugin. You have to restart qt creator after that to make it take effect. I had the same problem when debugging a unit test. I was debugging code not in the project itself and it was dying repeatedly on me sending tons of kernel messages.



来源:https://stackoverflow.com/questions/51662932/qt-how-do-i-remove-clang-code-model

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!