|
|
Re: Qt-Integration Problem [message #677349 is a reply to message #676857] |
Wed, 08 June 2011 09:08 |
Andr 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
|
|
|
Powered by
FUDForum. Page generated in 0.03434 seconds