Qt Reference Documentation

Window System Specific Notes

Qt is a cross-platform GUI toolkit, so almost the entire API is the same on all platforms and window systems. If you wish to use platform-specific features, and still maintain a platform-independent source tree, you should protect the platform-specific code using the appropriate #ifdef directives (see below).

Qt provides a few low-level global functions for fine-tuning applications on specific platforms. See Platform-Specific Functions for details.

For information about which platforms are supported by Qt, see the Platform Notes. For information on distributing Qt applications, see Deploying Qt Applications.

Qt for X11

When compiling for this platform, the macro Q_WS_X11 is defined.

Not documented here. Please contact Qt's technical support team if you have queries.

See the Qt for X11 Requirements page for more information about the libraries required to build Qt with as many features as possible.

Qt for Windows

When compiling for this platform, the macro Q_WS_WIN is defined.

Not documented here. Please contact Qt's technical support team if you have queries.

Qt for Mac OS X

When compiling for this platform, the macro Q_WS_MAC is defined.

Qt for Embedded Linux

When compiling for this platform, the macro Q_WS_QWS is defined (the window system is literally the Qt Window System). See the Qt for Embedded Linux documentation for more information.

Qt for Windows CE

When compiling for this platform, the macro Q_WS_WINCE is defined. See the Qt for Windows CE documentation for more information.

Qt for the Symbian platform

When compiling for this platform, the macro Q_WS_S60 is defined. See the The Symbian platform - Introduction to Qt documentation for more information.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.