CopperSpice Overview
Global Defines

Defines - Reference Only

Most of these defines are configured in qglobal.h and the values are set according to the platform CopperSpice will be run on. These defines should not be set in your application.

Define Information
QT_DEPRECATED Defined in CopperSpice, Using deprecated methods will display a compiler warning
QT_NO_DEPRECATED Undefined in CS
QT_SHARED Defined if CopperSpice libraries were built as shared libraries or DLLs
QT_STATIC Defined when building CopperSpice libraries statically (currently unsupported)
CS_SHOW_DEBUG When defined multiple debug messages will be displayed
QT_DEBUG Defined for debug version
QT_NODEBUG Defined for release version
QT_PLUGIN Defined when building a plugin library
QT_LARGEFILE_SUPPORT Windows Only
QT_THREAD_SUPPORT Windows Only


Defines - Obsolete

The following internal defines have been removed from CopperSpice. The bootstrap process refers to building a special version of QtCore which was only used when building MOC, RCC, and UIC for Qt libraries.

Moc is obsolete in CopperSpice so the bootstrap version of QtCore is no longer required.

Define Information
Q_COMPILER_AUTO_FUNCTION Removed, always true in CopperSpice
Q_COMPILER_RVALUE_REFS Removed, always true in CopperSpice
Q_EXPORT_PLUGIN Removed, use CS_PLUGIN_REGISTER
Q_FOREACH Removed, use a range based for instead
Q_MOC_CPP Removed, was defined for bootstrap of QtCore
Q_MOC_RUN Removed, was defined for bootstrap of QtCore
Q_NO_DATA_RELOCATION Removed, only used on Symbian
Q_NO_USING_KEYWORD Removed, only use on older compilers
Q_QDOC Removed, qdoc is no longer used for API documentation
Q_USE_DEPRECATED_MAP_API Removed, only used for old versions of WinCE
   - - - - - - - - - -
QT3_SUPPORT Removed in Qt 5 and CopperSpice
QTOPIA_PRINTDIALOG Removed, obsolete
QTOPIA_PRINTENGINE Removed, obsolete
   - - - - - - - - - -
QT_ARCH_WINDOWSCE Removed, obsolete
QT_ARCH_SYMBIAN Removed, obsolete
QT_BEGIN_HEADER Removed in Qt 5 and CopperSpice
QT_BOOTSTRAPPED Removed, was defined for bootstrap of QtCore
QT_BUILD_QMAKE Removed, was only used when building QMake
QT_END_HEADER Removed in Qt 5 and CopperSpice
QT_INCLUDE_COMPAT Removed, obsolete
QT_MAC_USE_COCOA Removed, Carbon is unsupported
QT_MOC_COMPAT Removed, this was part of Qt 3 Signals & Slots
QT_NO_CONCURRENT Removed, was only used on platforms without multi-threading
QT_NO_CORESERVICES Changed to Q_OS_IOS in Qt 5 and CopperSpice
QT_NO_DEBUG_STREAM Removed, debug stream always available
QT_NO_DYNAMIC_CAST Removed, obsolete
QT_NO_EXCEPTIONS Removed, always off as exceptions are used in standard C++
QT_NO_GEOM_VARIANT Removed, was defined for bootstrap of QtCore
QT_NO_IPV6 Removed, always off as IPV6 is always available
QT_NO_LIBRARY Removed, was defined for bootstrap of QtCore
QT_NO_PROPERTIES Removed, always off as properties are always available
QT_NO_QFUTURE Removed, was only used on platforms without multi-threading
QT_NO_QOBJECT Removed, was defined for bootstrap of Qt Core
QT_NO_QWS_INTEGRITY Removed, obsolete
QT_NO_STL Removed, was defined for bootstrap of QtCore
QT_NO_STYLE_S60 Removed, obsolete
QT_NO_STYLE_WINDOWSCE Removed, obsolete
QT_NO_STYLE_WINDOWSMOBILE Removed, obsolete
QT_NO_SYSTEMLOCALE Removed, was defined for bootstrap of QtCore
QT_NO_TEMPLATE_TEMPLATE_PARAMETERS Removed, only used on older compilers
QT_NO_TEXTSTREAM Removed, textstream always available
QT_NO_THREAD Removed, was defined for bootstrap of QtCore
QT_VERSION Use CS_VERSION
QT_VERSION_STR Use CS_VERSION_STR
QT_WINCE_GESTURES Removed, obsolete


Defines - Compilers & Bindings

Global Defines for the following compilers and bindings have been removed as they are currently not supported in modern C++, obsolete, or proprietary systems.

Define Compiler / Binding
Q_CC_BOR Borland
Q_CC_DEC Alpha
Q_CC_DIAB VxWorks
Q_CC_GCCE Symbian
Q_CC_HIGHC MetaWare High C/C++
Q_CC_GHS Green Hills
Q_CC_MSVC Microsoft Visual C
Q_CC_MWERKS MetroWerks
Q_CC_NOKIAX86 Nokia Symbian Emulator
Q_CC_RVCT ARM RelView Compilation Tools
Q_CC_SUN Sun Studio
Q_CC_SYM Symantec C++
Q_CC_USLC SCO OUDK
Q_CC_WAT Watcom
QT_JAMBI_BUILD Binding for Java


Defines - System Settings

The following were hard coded defines configured in QMake. The defines were configured at the time the Qt libraries were compiled.

In CopperSpice these defines have been moved into the existing qglobal.h file. The defines are configured based on which compiler is used at the time CopperSpice is built. The same compiler must be used when compiling CopperSpice and your application.

Define Information
Q_BIG_ENDIAN Moved to qglobal.h
Q_LITTLE_ENDIAN Moved to qglobal.h
Q_BYTE_ORDER Moved to qglobal.h
QT_ARCH_I386 Moved to qglobal.h
QT_ARCH_X86_64 Moved to qglobal.h
QT_EDITION Moved to qglobal.h
QT_VERSION Moved to qglobal.h


Defines - Windowing Systems

Many of the Q_WS_* and QT_QWS_* global defines have been removed from CopperSpice and Qt 5. The following are the defines which have been removed from CopperSpice.

Define Description
Q_WS_MAEMO_5 Removed, obsolete
Q_WS_MAC Changed to Q_OS_DARWIN
Q_WS_MACX Changed to Q_OS_DARWIN
Q_WS_S60 Removed, obsolete
Q_WS_WIN Changed to Q_OS_WIN
Q_WS_WIN32 Changed to Q_OS_WIN32
Q_WS_WIN64 Changed to Q_OS_WIN64
Q_WS_WINCE Removed, obsolete
Q_WS_WINCE_WM Removed, obsolete