I have tried it out but it had no effect on code completion. As a workaround we included the macro file temporarily in one of our basic components. If I comment out that include the code completion fails again with the suggested solution too. It is just a temporary workaround, we would like to solve the problem properly (as our colleagues did it in Eclipse with setting the preprocessor macros file).
2017-05-24 19:49 GMT+02:00 Orgad Shaneh <org...@gmail.com>: > 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