Code::Blocks Forums

User forums => Help => Topic started by: probine on September 30, 2005, 10:57:53 am

Title: How to present options from QT ?
Post by: probine on September 30, 2005, 10:57:53 am
Usually in an editor after pressing "." or "->" a set of methods appear in the screen, so the user can choose between them.

I am using CodeBlocks and I want to program my QT interface. When I use my own files, like ".h", then as soon as I press "." or "->" I am able to see the different methods, but it doesn't happen with the methods in QT.

How can I connect my editor, so it will display the QT methods from a class, so I can just choose the options ???
Title: Re: How to present options from QT ?
Post by: mandrav on September 30, 2005, 01:08:46 pm
Settings->Plugins->Code-completion and enable "Follow LOCAL includes" and "Follow GLOBAL includes".
Note that your project will take a little more time to open, as all the included files will be scanned for tokens...
Title: Re: How to present options from QT ?
Post by: probine on September 30, 2005, 01:44:09 pm
With "Local Includes" and "Global Includes" I don't have anything new... I am still able to see the methods in my #include "test.h" class, but in my #include <iostream> I don't have naything.
Title: Re: How to present options from QT ?
Post by: mandrav on September 30, 2005, 03:58:30 pm
Filenames without extension (like the STL) are not currently parsed. Sorry...
Title: Re: How to present options from QT ?
Post by: probine on September 30, 2005, 04:27:15 pm
How about then if I do this:

#include <iostream.h>

it has an extension