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 information about which platforms are supported by Qt, see the Platform and Compiler Notes . For information on distributing Qt applications, see 部署 Qt 應用程序 .
When compiling for this platform, the macro
Q_WS_X11
有定義。
Not documented here. Please contact Qt's technical support team if you have queries.
見 Qt for X11 要求 page for more information about the libraries required to build Qt with as many features as possible.
When compiling for this platform, the macro
Q_WS_WIN
有定義。
Not documented here. Please contact Qt's technical support team if you have queries.
When compiling for this platform, the macro
Q_WS_MAC
有定義。
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
文檔編製,瞭解更多信息。
When compiling for this platform, the macro
Q_WS_WINCE
is defined. See the
Qt for Windows CE
文檔編製,瞭解更多信息。
When compiling for this platform, the macro
Q_WS_S60
is defined. See the
The Symbian platform - Introduction to Qt
文檔編製,瞭解更多信息。