Try this:

PRECOMPILED_HEADER = your_header.h
CONFIG -= precompile_header # prevent actually passing it to the compiler
(it is configured by default on Windows)

בתאריך 24 במאי 2017 18:32,‏ "Ádám Balázs" <broo...@gmail.com> כתב:

> Hi,
>
> Our project has a predefined macro file that is given to the compiler
> (GCC/Clang) with the -imacros flag. It contains the platform specific
> macros so it is a complicated and long file. Can I specify a predefined
> macro file in Qt Creator because without it the code completion fails? I
> know that I can specify my macros in the DEFINES section of the .pro file
> but we have them in a standalone file. It is not possible to move them into
> the .pro file because other colleagues use Eclipse. Adding -imacros in
> QMAKE_CXXFLAGS has no effect on code completion.
> In Eclipse you can set it on this screen: http://imgur.com/a/AVFMO
> Is there a similar setting in Qt Creator?
>
> Adam
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
>
_______________________________________________
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator

Reply via email to