Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Qt-Integration Problem
Qt-Integration Problem [message #676789] Mon, 06 June 2011 14:23 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: June 2011
Junior Member
I am using eclipse with cdt plugin.
When i install the qt-integration plugin,

i will not have any code-completion for anything except qt.

i get not errors but messages that eg
#include<iostream>

is an unresolved inclusion.

strg+ctrl will say it has no proposals for anything which is not qt.

But the projects can be build without problems.


Well i need my code-completion nevertheless. So what can i do?
Re: Qt-Integration Problem [message #676857 is a reply to message #676789] Mon, 06 June 2011 18:15 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: June 2011
Junior Member
Well a little more information:

Im running on Linux 64bit

This problem only occurs if i select new Qt-Gui Project from the Wizard.
Usual C++ Projects still have the code-completion.
Re: Qt-Integration Problem [message #677349 is a reply to message #676857] Wed, 08 June 2011 09:08 Go to previous message
Andr is currently offline AndrFriend
Messages: 7
Registered: July 2009
Junior Member
Hi,

As far as I know, the indexer (which enables the code-completion), only takes into account the folders included in [Properties -- C/C++ Include Paths and Symbols].

Because for normal C++ Projects you are required to add all your includes in the project properties, the indexer will know where to find them.

Qt Projects, on the other hand, rely on the .pro file to get the include files but the indexer will not know where to find them. Therefore, you have to manually add the include files in the project properties so the indexer knows where to find them and enable code-completion.

The easiest way is to use the Discovery options:
In the project properties, go to "C/C++ Include Paths and Symbols" and click on "Add Contributed..." then select the "Discovered scanner configuration container" and click next twice until you see a list of checkboxes with the header file folders... check the ones you want to add to the indexer (normally all the ones with a folder icon) and click on "finish".

And to be safe, right-click on the project and search for "Indexer" and click "Rebuild" to update the indexer.

Hope this helps,
Andres
Previous Topic:Cannot give input through the console
Next Topic:CDT update fails
Goto Forum:
  


Current Time: Thu Apr 25 10:55:38 GMT 2024

Powered by FUDForum. Page generated in 0.03434 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top