Solved QtCreator problems about convenience
-
Problem 1: Auto completion problem
(1)
(2)
The 2nd is what I want, while it can be made be default by pluggin not loading "ClangCodeModel"
The problem is other function(s) don't work, as far as I encountered, "issues" doesn't funciton:
Problem 2: Semantic hightlight problem
e.g.
pch.h // precompile header
class ClassLib { };
test.h
ClassLib a; // Here is the problem, the editor doesn't recognize ClassLib
test.cpp
#include "pch.h" #include "test.h"
-
About your first problem: We already discussed that in https://forum.qt.io/topic/98055/qt-creator-auto-completion-problem
If you disable Clang, there will be no annotations in the issues pane. I recommend you to comment on the bug report I linked. That's all we can do for now.
For the second problem:
You need to
#include "pch.h"
in test.h rather than in test.cpp, otherwise it will not work.Regards
-
@aha_1980 said in QtCreator problems about convenience:
About your first problem: We already discussed that in https://forum.qt.io/topic/98055/qt-creator-auto-completion-problem
If you disable Clang, there will be no annotations in the issues pane. I recommend you to command on the bug report I linked. That's all we can do for now.
OK
For the second problem:
You need to
#include "pch.h"
in test.h rather than in test.cpp, otherwise it will not work.Fine, it's consistent.