[Qt-creator] #ifdef Linux - code coloring

Gilles Valette gilles.valette at univ-reims.fr
Mon May 18 13:18:20 CEST 2009


Liebe Markus (RtP2/TEF72) wrote:
> Hi,
> 
> Thanks for your answers.
> 
>> Have you considered using
>>  #ifdef Q_OS_LINUX
>>  // code
>>  #endif
>> 
>> and
>> 
>>  #ifdef Q_OS_WIN
>>  // code
>>  #endif
> 
> I tried this. On Linux Q_OS_LINUX works.
> On Windows Q_OS_WIN32 / Q_OS_WIN does not work. See attached
> screenshot. 

Hi,

On the screenshot this is Q_WS_WIN, not Q_OS_WIN as requested...

Regards,

Gilles




More information about the Qt-creator-old mailing list