|  | Home · All Classes · Main Classes · Annotated · Grouped Classes · 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/X11
- Qt/Windows
- Qt/Mac OS X
- Qt/Embedded

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.

Note: You must compile with both Xft and XRender support to get alpha transparency support for pixmaps and images. Configuring with XRender support alone is not enough.

## 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

## Qt/Embedded

When compiling for this platform, the macro `Q_WS_QWS` is defined (the window system is literally the Qt Window System).

- Installing Qt/Embedded
- The Qt/Embedded-Specific Classes
- Qt/Embedded Environment Variables
- Running Qt/Embedded Applications
- Enabling the Linux Framebuffer
- Qt/Embedded Virtual Framebuffer
- Qt/Embedded as a VNC Server
- Qt/Embedded Performance Tuning
- The Feature Definition File
- Porting Your Applications to Qt/Embedded
- Fonts in Qt/Embedded
- Character Input in Qt/Embedded
- Qt/Embedded Pointer Handling
- Adding an Accelerated Graphics Driver to Qt/Embedded
- Issues to be Aware of when Porting Qt/Embedded