Hi, Could anyone point me out to an article, where pragma directives, available in Qt enviroment would be discussed? Thank you.
+5
A:
AFAIK pragma
directives are preprocessor and compiler directives and have not much to do with Qt itself.
- http://gcc.gnu.org/onlinedocs/cpp/Pragmas.html
- http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html
- https://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/gcc/pragmas.html
Qt provides some defines, which can be used to do things like enable/disable parts of the source code depending on which platform you are compiling:
You can use them like this:
#ifdef Q_WS_MAC
(some mac code goes here)
#endif
#ifdef Q_WS_WIN32
(some windows code goes here)
#endif
BastiBense
2010-01-14 11:33:02
A:
The complete list of moduyles in Qt which can be removed by defines is found in src>corelib>global>qconfig-minimal.h in the folder of your original Qt download.
Mark
2010-01-15 03:57:35