以下成员源于类 QSysInfo 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。
(obsolete)
enum
|
MacVersion { MV_9, MV_10_0, MV_10_1, MV_10_2, MV_10_3, …, MV_None } |
(obsolete)
enum
|
WinVersion { WV_32s, WV_95, WV_98, WV_Me, WV_NT, …, WV_None } |
(obsolete)
const QSysInfo::MacVersion
|
MacintoshVersion |
(obsolete)
const QSysInfo::WinVersion
|
WindowsVersion |
(obsolete)
QSysInfo::MacVersion
|
macVersion () |
(obsolete)
QSysInfo::WinVersion
|
windowsVersion () |
This enum is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This enum provides symbolic names for the various versions of the Darwin operating system, covering both macOS and iOS. The QSysInfo::MacintoshVersion variable gives the version of the system on which the application is run.
常量 | 值 | 描述 |
---|---|---|
QSysInfo::MV_9
|
Q_MV_OSX(9, 0)
|
macOS 9 |
QSysInfo::MV_10_0
|
Q_MV_OSX(10, 0)
|
macOS 10.0 |
QSysInfo::MV_10_1
|
Q_MV_OSX(10, 1)
|
macOS 10.1 |
QSysInfo::MV_10_2
|
Q_MV_OSX(10, 2)
|
macOS 10.2 |
QSysInfo::MV_10_3
|
Q_MV_OSX(10, 3)
|
macOS 10.3 |
QSysInfo::MV_10_4
|
Q_MV_OSX(10, 4)
|
macOS 10.4 |
QSysInfo::MV_10_5
|
Q_MV_OSX(10, 5)
|
macOS 10.5 |
QSysInfo::MV_10_6
|
Q_MV_OSX(10, 6)
|
macOS 10.6 |
QSysInfo::MV_10_7
|
Q_MV_OSX(10, 7)
|
macOS 10.7 |
QSysInfo::MV_10_8
|
Q_MV_OSX(10, 8)
|
macOS 10.8 |
QSysInfo::MV_10_9
|
Q_MV_OSX(10, 9)
|
macOS 10.9 |
QSysInfo::MV_10_10
|
Q_MV_OSX(10, 10)
|
macOS 10.10 |
QSysInfo::MV_10_11
|
Q_MV_OSX(10, 11)
|
macOS 10.11 |
QSysInfo::MV_10_12
|
Q_MV_OSX(10, 12)
|
macOS 10.12 |
QSysInfo::MV_Unknown
|
0x0000
|
An unknown and currently unsupported platform |
QSysInfo::MV_CHEETAH
|
MV_10_0
|
Apple codename for MV_10_0 |
QSysInfo::MV_PUMA
|
MV_10_1
|
Apple codename for MV_10_1 |
QSysInfo::MV_JAGUAR
|
MV_10_2
|
Apple codename for MV_10_2 |
QSysInfo::MV_PANTHER
|
MV_10_3
|
Apple codename for MV_10_3 |
QSysInfo::MV_TIGER
|
MV_10_4
|
Apple codename for MV_10_4 |
QSysInfo::MV_LEOPARD
|
MV_10_5
|
Apple codename for MV_10_5 |
QSysInfo::MV_SNOWLEOPARD
|
MV_10_6
|
Apple codename for MV_10_6 |
QSysInfo::MV_LION
|
MV_10_7
|
Apple codename for MV_10_7 |
QSysInfo::MV_MOUNTAINLION
|
MV_10_8
|
Apple codename for MV_10_8 |
QSysInfo::MV_MAVERICKS
|
MV_10_9
|
Apple codename for MV_10_9 |
QSysInfo::MV_YOSEMITE
|
MV_10_10
|
Apple codename for MV_10_10 |
QSysInfo::MV_ELCAPITAN
|
MV_10_11
|
Apple codename for MV_10_11 |
QSysInfo::MV_SIERRA
|
MV_10_12
|
Apple codename for MV_10_12 |
QSysInfo::MV_IOS
|
1 << 8
|
iOS (any) |
QSysInfo::MV_IOS_4_3
|
Q_MV_IOS(4, 3)
|
iOS 4.3 |
QSysInfo::MV_IOS_5_0
|
Q_MV_IOS(5, 0)
|
iOS 5.0 |
QSysInfo::MV_IOS_5_1
|
Q_MV_IOS(5, 1)
|
iOS 5.1 |
QSysInfo::MV_IOS_6_0
|
Q_MV_IOS(6, 0)
|
iOS 6.0 |
QSysInfo::MV_IOS_6_1
|
Q_MV_IOS(6, 1)
|
iOS 6.1 |
QSysInfo::MV_IOS_7_0
|
Q_MV_IOS(7, 0)
|
iOS 7.0 |
QSysInfo::MV_IOS_7_1
|
Q_MV_IOS(7, 1)
|
iOS 7.1 |
QSysInfo::MV_IOS_8_0
|
Q_MV_IOS(8, 0)
|
iOS 8.0 |
QSysInfo::MV_IOS_8_1
|
Q_MV_IOS(8, 1)
|
iOS 8.1 |
QSysInfo::MV_IOS_8_2
|
Q_MV_IOS(8, 2)
|
iOS 8.2 |
QSysInfo::MV_IOS_8_3
|
Q_MV_IOS(8, 3)
|
iOS 8.3 |
QSysInfo::MV_IOS_8_4
|
Q_MV_IOS(8, 4)
|
iOS 8.4 |
QSysInfo::MV_IOS_9_0
|
Q_MV_IOS(9, 0)
|
iOS 9.0 |
QSysInfo::MV_IOS_9_1
|
Q_MV_IOS(9, 1)
|
iOS 9.1 |
QSysInfo::MV_IOS_9_2
|
Q_MV_IOS(9, 2)
|
iOS 9.2 |
QSysInfo::MV_IOS_9_3
|
Q_MV_IOS(9, 3)
|
iOS 9.3 |
QSysInfo::MV_IOS_10_0
|
Q_MV_IOS(10, 0)
|
iOS 10.0 |
QSysInfo::MV_TVOS
|
1 << 9
|
tvOS (any) |
QSysInfo::MV_TVOS_9_0
|
Q_MV_TVOS(9, 0)
|
tvOS 9.0 |
QSysInfo::MV_TVOS_9_1
|
Q_MV_TVOS(9, 1)
|
tvOS 9.1 |
QSysInfo::MV_TVOS_9_2
|
Q_MV_TVOS(9, 2)
|
tvOS 9.2 |
QSysInfo::MV_TVOS_10_0
|
Q_MV_TVOS(10, 0)
|
tvOS 10.0 |
QSysInfo::MV_WATCHOS
|
1 << 10
|
watchOS (any) |
QSysInfo::MV_WATCHOS_2_0
|
Q_MV_WATCHOS(2, 0)
|
watchOS 2.0 |
QSysInfo::MV_WATCHOS_2_1
|
Q_MV_WATCHOS(2, 1)
|
watchOS 2.1 |
QSysInfo::MV_WATCHOS_2_2
|
Q_MV_WATCHOS(2, 2)
|
watchOS 2.2 |
QSysInfo::MV_WATCHOS_3_0
|
Q_MV_WATCHOS(3, 0)
|
watchOS 3.0 |
QSysInfo::MV_None
|
0xffff
|
Not a Darwin operating system |
另请参阅 WinVersion .
This enum is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This enum provides symbolic names for the various versions of the Windows operating system. On Windows, the QSysInfo::WindowsVersion variable gives the version of the system on which the application is run.
MS-DOS-based versions:
常量 | 值 | 描述 |
---|---|---|
QSysInfo::WV_32s
|
0x0001
|
Windows 3.1 with Win 32s |
QSysInfo::WV_95
|
0x0002
|
Windows 95 |
QSysInfo::WV_98
|
0x0003
|
Windows 98 |
QSysInfo::WV_Me
|
0x0004
|
Windows Me |
NT-based versions (note that each operating system version is only represented once rather than each Windows edition):
常量 | 值 | 描述 |
---|---|---|
QSysInfo::WV_NT
|
0x0010
|
Windows NT (operating system version 4.0) |
QSysInfo::WV_2000
|
0x0020
|
Windows 2000 (operating system version 5.0) |
QSysInfo::WV_XP
|
0x0030
|
Windows XP (operating system version 5.1) |
QSysInfo::WV_2003
|
0x0040
|
Windows Server 2003, Windows Server 2003 R2, Windows Home Server, Windows XP Professional x64 Edition (operating system version 5.2) |
QSysInfo::WV_VISTA
|
0x0080
|
Windows Vista, Windows Server 2008 (operating system version 6.0) |
QSysInfo::WV_WINDOWS7
|
0x0090
|
Windows 7, Windows Server 2008 R2 (operating system version 6.1) |
QSysInfo::WV_WINDOWS8
|
0x00a0
|
Windows 8 (operating system version 6.2) |
QSysInfo::WV_WINDOWS8_1
|
0x00b0
|
Windows 8.1 (operating system version 6.3), introduced in Qt 5.2 |
QSysInfo::WV_WINDOWS10
|
0x00c0
|
Windows 10 (operating system version 10.0), introduced in Qt 5.5 |
Alternatively, you may use the following macros which correspond directly to the Windows operating system version number:
常量 | 值 | 描述 |
---|---|---|
QSysInfo::WV_4_0
|
WV_NT
|
Operating system version 4.0, corresponds to Windows NT |
QSysInfo::WV_5_0
|
WV_2000
|
Operating system version 5.0, corresponds to Windows 2000 |
QSysInfo::WV_5_1
|
WV_XP
|
Operating system version 5.1, corresponds to Windows XP |
QSysInfo::WV_5_2
|
WV_2003
|
Operating system version 5.2, corresponds to Windows Server 2003, Windows Server 2003 R2, Windows Home Server, and Windows XP Professional x64 Edition |
QSysInfo::WV_6_0
|
WV_VISTA
|
Operating system version 6.0, corresponds to Windows Vista and Windows Server 2008 |
QSysInfo::WV_6_1
|
WV_WINDOWS7
|
Operating system version 6.1, corresponds to Windows 7 and Windows Server 2008 R2 |
QSysInfo::WV_6_2
|
WV_WINDOWS8
|
Operating system version 6.2, corresponds to Windows 8 |
QSysInfo::WV_6_3
|
WV_WINDOWS8_1
|
Operating system version 6.3, corresponds to Windows 8.1, introduced in Qt 5.2 |
QSysInfo::WV_10_0
|
WV_WINDOWS10
|
Operating system version 10.0, corresponds to Windows 10, introduced in Qt 5.5 |
The following masks can be used for testing whether a Windows version is MS-DOS-based or NT-based:
常量 | 值 | 描述 |
---|---|---|
QSysInfo::WV_DOS_based
|
0x000f
|
MS-DOS-based version of Windows |
QSysInfo::WV_NT_based
|
0x00f0
|
NT-based version of Windows |
QSysInfo::WV_None
|
0x0000
|
Operating system other than Windows. |
另请参阅 MacVersion .
[static]
QSysInfo::MacVersion
QSysInfo::
macVersion
()
此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
Returns the version of Darwin (macOS or iOS) on which the application is run, or MV_None if the operating system is not a version of Darwin.
[static]
QSysInfo::WinVersion
QSysInfo::
windowsVersion
()
此函数已过时。提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。
Returns the version of the Windows operating system on which the application is run, or WV_None if the operating system is not Windows.
该函数在 Qt 4.4 引入。
This documentation is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This variable holds the version of the Macintosh operating system on which the application is run.
This documentation is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This variable holds the version of the Windows operating system on which the application is run.