h5nc
26th June 2012, 06:26
Hi all,
I am using Qt Creator but I found that when I use an instance or a pointer of a inherited class, it can only hint the funcs, vars of its own class. How can I make it parse the base class too and display all functions that inherited?
For example:
class A
{
public:
void fooA();
};
class B : public A
{
public:
void fooB();
};
B *pB = new B();
pb->
After hitting -> or . in my keyboard it only hints fooB(). It should hint fooA() too as in Visual Studio...
Similarly, it cannot understand a class that is not included directly in B.h but already included in A.h
SOLVED: OK, I solved two silly problems by myself now.... Simply because I used precompiled headers... I should include Stdafx.h
I am using Qt Creator but I found that when I use an instance or a pointer of a inherited class, it can only hint the funcs, vars of its own class. How can I make it parse the base class too and display all functions that inherited?
For example:
class A
{
public:
void fooA();
};
class B : public A
{
public:
void fooB();
};
B *pB = new B();
pb->
After hitting -> or . in my keyboard it only hints fooB(). It should hint fooA() too as in Visual Studio...
Similarly, it cannot understand a class that is not included directly in B.h but already included in A.h
SOLVED: OK, I solved two silly problems by myself now.... Simply because I used precompiled headers... I should include Stdafx.h