[SOLVED]Qt - check module availability in code
-
wrote on 24 Jul 2011, 21:03 last edited by
How to check in C++ code, if there is added in project file required module, I mean:
@
#if QT_MODULE_ADDED(Gui)
#include <QtGui>
#endif
@Exists similar macro?
-
wrote on 25 Jul 2011, 00:17 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.
-
wrote on 25 Jul 2011, 15:23 last edited by
Yes, that works.
-
wrote on 25 Jul 2011, 20:27 last edited by
But, there is else way (I found it through IntelliSense): QT_MODULE_GUI? QT_MODULE_CORE?
1/4