I develop app with some elements of Qt. I use cmake as build system and Eclipse only as editor and debugger. Everything comiles fine (thanks to CMake), however I can’t force IDE to complete my Qt code.
Many times someone asked about it and the solution was to add include path. I did it of course, but
#include <QtSql>
is different, because there is no such file in include dir. It probably would work if I include all necassary files by hand. Is there any way to make Eclipse understand that “QtSql” means all classes from this module?
Install qt4 eclipse integration package. You can find instructions here
As the webpage says, the module package should live inside
eclipse/plugins, untar the package and start eclipse just one time from the command-line: