代码如下:#ifndef QGLOBAL_H#define QGLOBAL_H
#define QT_VERSION_STR “3.1.2”/* QT_VERSION is (major << 16) + (minor << 8) + patch. */#define QT_VERSION 0x030102
/* The operating system, must be one of: (Q_OS_x)
MACX – Mac OS X MAC9 – Mac OS 9 MSDOS – MS-DOS and Windows OS2 – OS/2