Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED]Qt - check module availability in code
How to check in C++ code, if there is added in project file required module, I mean:
Exists similar macro?
alexisdm last edited by
If you compile with qmake, the macros: QT_CORE_LIB, QT_GUI_LIB, QT_NETWORK_LIB... are defined for each module you put in the QT variable in your .pro file.
Yes, that works.
But, there is else way (I found it through IntelliSense): QT_MODULE_GUI? QT_MODULE_CORE?