Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
Qt Creator 2.4.1, Qt Creator 2.8.0-beta
-
None
-
linux but likely doesn't matter
Description
If you create a class definition that includes components from another file via an #include directive, then the auto-complete system doesn't pick up the additional information from the included file. For example, in A.h put:
class A { int methodA(); #include "otherFile.h" };
Then in "otherFile.h" you put:
int methodB();
When you include A.h into some other file so you can use the A definition:
#include "A.h" // ... A myA; qDebug() << myA.[TAB_HERE]
Normally when you hit the period (.) (or TAB at TAB_HERE), qtcreator prompts with completion possibilities. But in the case above only the methodA() will get shown as an available function.
[Yes, I realize this is slightly a weird way of doing function definitions, but for auto-generated stuff it's helpful]
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-4782 completion not working for classes containing #include
- Open