C++ – Qt with Eclipse CDT Juno

ceclipseeclipse-cdtqt

I am having a difficult time trying to find a way to link the Qt library to my Eclipse project.

The Qt SDK package 4.8.1
with
Eclipse CDT Juno

Is there a way to link Qt libraries to eclipse?

Best Answer

UPDATE: It appears that the Eclipse plugin is no longer officially supported but that it's still available via download. The link below references their ftp site.


Nokia provides Eclipse-Qt integration. That said, it's unnecessary as it's always possible to use an Eclipse project that's using custom build commands. You could simply create a makefile project making certain to run qmake at the appropriate times.

To start, it might be as simple as:

  • Create a file or two
  • qmake -project # create your project file
  • qmake # generate your makefile
  • # tell eclipse to build the project

If the above, you'd only need to re-run qmake when adding new files and doing other things that affect the qt project file.