views:

155

answers:

0

My Eclipse CDT has some problems with either resolving Qt headers or code completion. The example will explain everything. Usually the include would look like this:

#include <QPushButton>

But when I use code completion in Eclipse it replaces the include with following:

#include <qpushbutton.h>

Technically everything works and the program compiles with no problems. But it does not satisfy the Qt standard and writing the include manually is a bit frustrating when the code completion should do it for you and speed the process up.

What are the settings I should change in order to make Eclipse work with Qt headers correctly?