The <QtSystemDetection> header file includes various platfrom-specific macros. 更多...
头: | #include <QtSystemDetection> |
The <QtSystemDetection> header file declares a range of macros (Q_OS_*) that are defined for the specified platforms. For example, Q_OS_UNIX which is defined for Unix-based systems.
The purpose of these macros is to enable programmers to add platform-specific code to their application.
Defined on AIX.
Defined on Android.
Defined on any BSD 4.4 system.
Defined on Cygwin.
Defined on Darwin-based operating systems such as macOS, iOS, watchOS, and tvOS.
Defined on FreeBSD.
Defined on HP-UX.
Defined on GNU Hurd.
Defined on iOS.
Defined on Linux.
Defined on LynxOS.
Deprecated synonym for
Q_OS_DARWIN
。不使用。
Defined on macOS.
Defined on NetBSD.
Defined on OpenBSD.
Deprecated synonym for
Q_OS_MACOS
。不使用。
Defined on QNX Neutrino.
Defined on Sun Solaris.
Defined on tvOS.
Defined on any UNIX BSD/SYSV system.
Defined on Web Assembly.
Defined on watchOS.
Defined on 32-bit and 64-bit versions of Windows.
Defined on 64-bit versions of Windows.
Defined on all supported versions of Windows. That is, if Q_OS_WIN32 or Q_OS_WIN64 有定义。
This is a synonym for Q_OS_WIN .