Eclipse: QtHeaders
If you use Qt with Eclipse you will experience that the code completion does not work as expected. The reason is that the Qt header files do not end with the .h extension. Therefore they are not recognized by Eclipse. There is a Qt development plugin for Linux and Windows which probably fixes this problem. However, this plugin is not available for Mac OS X, yet. So I decided to create this simple plugin which can be used also with Mac OS X and which lets Eclipse recognize the Qt header files to get the code completion working.
I also wrote a tutorial how to setup Eclipse under Mac OS X for the development of Qt applications.
Installation:
Copy the plugin to the “plugins” directory of your Eclipse directory and restart Eclipse.
License
The plugin may be redistributed and changed under the GNU Public License.
Downloads:
The version numbers correspond to the Qt version for which the plugin was made.
The sourcecode is also hosted at gitorious.org in a git repository.
| Description | Version | Download | Size |
|---|---|---|---|
| Compiled plugin | 4.6.3 | qtheaders_4.6.3.jar | 7,4 KiB |
| Sourcecode | 4.6.3 | qtheaders-4.6.3.tar.gz | 25 KiB |
| Compiled plugin | 4.5.1 | qtheaders_4.5.1.jar | 7,2 KiB |
| Sourcecode | 4.5.1 | qtheaders.tar.gz | 80 KiB |
Last modification: August 20th, 2010 at 12:03



To the top
July 22nd, 2010 at 08:25
Hi,
thanks a lot for the plugins. I recently updated my Qt installation to version 4.7-64bit and Eclipse to 64-bit version codename Helios. Could you figure out if can be simple to update the plugin to work with this version of Qt and Eclipse? Thanks a lot. Best regards. Zack
July 23rd, 2010 at 07:22
The update to Qt version 4.7 should be easy. The plugin mainly consists of a single (XML) file listing all the Qt headers. One would only have to add the new headers in version 4.7.
Concerning the Eclipse version I would hope that the plugin does not need any changes. However, I am not sure about this and have to try this for myself. But I am still using Galileo and will not update for the next few weeks.
Probably I will publish an updated version in a few months. (I suppose I will not have enough free time earlier, but if you are lucky it might also be in the next few weeks.)