|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# 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 Special-Purpose Global Functions Exported by Qt for details.

- Qt/X11
- Qt/Windows
- Qt/Mac OS X
- Qtopia Core (Qt for Embedded Linux)

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

## Qt/X11

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

Not documented here. Please contact Trolltech Technical Support if you have queries.

Name | Library | Notes | Configuration options
--- | --- | --- | ---
QtGui | libQtGui | QtGui
QtCore | libQtCore | QtCore (non-user interface features)
XRender | libXrender | X Rendering Extension; used for anti-aliasing | `-xrender` or auto-detected
Xrandr | libXrandr | X Resize and Rotate Extension | `-xrandr` or auto-detected
Xcursor | libXcursor | X Cursor Extension | `-xcursor` or auto-detected
Xfixes | libXfixes | X Fixes Extension | `-xfixes` or auto-detected
Xinerama | libXinerama | Multi-head support | `-xinerama` or auto-detected
Xt | libXext | Xt Intrinsics
Xext | libXext | X Extensions
X11 | libX11 | X Window System
SM | libSM | X Session Management | `-sm` or auto-detected
ICE | libICE | Inter-Client Exchange | `-sm` or auto-detected
glib | libglib-2.0 | Common event loop handling | `-glib` or auto-detected
pthread | libpthread | Multithreading

Note: You must compile with XRender support to get alpha transparency support for pixmaps and images.

## Qt/Windows

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

Not documented here. Please contact Trolltech Technical Support if you have queries.

## Qt/Mac OS X

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

- Qt/Mac-Specific Issues
- Qt/Mac is Mac OS X Native

## Qtopia Core (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 Qtopia Core documentation for more information.