[Qt-creator] Define between class and class_name cases intellisense problem

Eike Ziller eike.ziller at nokia.com
Tue Jul 28 12:28:34 CEST 2009


Hi,

On Jul 28, 2009, at 10:55 AM, ext Eirik Ulvik wrote:

> Hi,
> in our system we have a .h file for each dll that is to be  
> generated. In
> this file we have a preprocessor define, for example MY_LIB_DLL, that
> handles the _declspec(dllimport/dllexport) stuff for Windows and  
> and  an
> empty define for the Linux platform. A class definition using this  
> would
> the look like this:
> class MY_LIB_DLL MyClass
> {
> ...
> ...
> };
>
> This breaks QtCreator's parser and intellisense is not available for  
> all
> classes that uses this scheme.
>
> System is Win XP SP3 and QtCreator 1.2.1.
>
> Do not know if this has been reported before.

Note that QtCreator doesn't take DEFINES from pro files yet. But if  
MY_LIB_DLL is defined in a header that is included by the file  
containing the "class MY_LIB_DLL MyClass", it should work.
It would be interesting to have a minimal example, if that is not the  
case for you.

Best regards,
Eike

-- 
Eike Ziller
Software Engineer
Nokia, Qt Software
Phone  +49 (0)30 6392 3255
Fax    +49 (0)30 6392 3256
E-mail eike.ziller at nokia.com







More information about the Qt-creator-old mailing list