Obsolete Members for QSysInfo

The following members of class QSysInfo are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Types

(obsolete) enum MacVersion { MV_9, MV_10_0, MV_10_1, MV_10_2, ..., MV_None }
(obsolete) enum WinVersion { WV_32s, WV_95, WV_98, WV_Me, ..., WV_None }

Static Public Members

(obsolete) const QSysInfo::MacVersion MacintoshVersion
(obsolete) const QSysInfo::WinVersion WindowsVersion
(obsolete) QSysInfo::MacVersion macVersion()
(obsolete) QSysInfo::WinVersion windowsVersion()

Member Type Documentation

enum QSysInfo::MacVersion

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.

ConstantValueDescription
QSysInfo::MV_9Q_MV_OSX(9, 0)macOS 9
QSysInfo::MV_10_0Q_MV_OSX(10, 0)macOS 10.0
QSysInfo::MV_10_1Q_MV_OSX(10, 1)macOS 10.1
QSysInfo::MV_10_2Q_MV_OSX(10, 2)macOS 10.2
QSysInfo::MV_10_3Q_MV_OSX(10, 3)macOS 10.3
QSysInfo::MV_10_4Q_MV_OSX(10, 4)macOS 10.4
QSysInfo::MV_10_5Q_MV_OSX(10, 5)macOS 10.5
QSysInfo::MV_10_6Q_MV_OSX(10, 6)macOS 10.6
QSysInfo::MV_10_7Q_MV_OSX(10, 7)macOS 10.7
QSysInfo::MV_10_8Q_MV_OSX(10, 8)macOS 10.8
QSysInfo::MV_10_9Q_MV_OSX(10, 9)macOS 10.9
QSysInfo::MV_10_10Q_MV_OSX(10, 10)macOS 10.10
QSysInfo::MV_10_11Q_MV_OSX(10, 11)macOS 10.11
QSysInfo::MV_10_12Q_MV_OSX(10, 12)macOS 10.12
QSysInfo::MV_Unknown0x0000An unknown and currently unsupported platform
QSysInfo::MV_CHEETAHMV_10_0Apple codename for MV_10_0
QSysInfo::MV_PUMAMV_10_1Apple codename for MV_10_1
QSysInfo::MV_JAGUARMV_10_2Apple codename for MV_10_2
QSysInfo::MV_PANTHERMV_10_3Apple codename for MV_10_3
QSysInfo::MV_TIGERMV_10_4Apple codename for MV_10_4
QSysInfo::MV_LEOPARDMV_10_5Apple codename for MV_10_5
QSysInfo::MV_SNOWLEOPARDMV_10_6Apple codename for MV_10_6
QSysInfo::MV_LIONMV_10_7Apple codename for MV_10_7
QSysInfo::MV_MOUNTAINLIONMV_10_8Apple codename for MV_10_8
QSysInfo::MV_MAVERICKSMV_10_9Apple codename for MV_10_9
QSysInfo::MV_YOSEMITEMV_10_10Apple codename for MV_10_10
QSysInfo::MV_ELCAPITANMV_10_11Apple codename for MV_10_11
QSysInfo::MV_SIERRAMV_10_12Apple codename for MV_10_12
QSysInfo::MV_IOS1 << 8iOS (any)
QSysInfo::MV_IOS_4_3Q_MV_IOS(4, 3)iOS 4.3
QSysInfo::MV_IOS_5_0Q_MV_IOS(5, 0)iOS 5.0
QSysInfo::MV_IOS_5_1Q_MV_IOS(5, 1)iOS 5.1
QSysInfo::MV_IOS_6_0Q_MV_IOS(6, 0)iOS 6.0
QSysInfo::MV_IOS_6_1Q_MV_IOS(6, 1)iOS 6.1
QSysInfo::MV_IOS_7_0Q_MV_IOS(7, 0)iOS 7.0
QSysInfo::MV_IOS_7_1Q_MV_IOS(7, 1)iOS 7.1
QSysInfo::MV_IOS_8_0Q_MV_IOS(8, 0)iOS 8.0
QSysInfo::MV_IOS_8_1Q_MV_IOS(8, 1)iOS 8.1
QSysInfo::MV_IOS_8_2Q_MV_IOS(8, 2)iOS 8.2
QSysInfo::MV_IOS_8_3Q_MV_IOS(8, 3)iOS 8.3
QSysInfo::MV_IOS_8_4Q_MV_IOS(8, 4)iOS 8.4
QSysInfo::MV_IOS_9_0Q_MV_IOS(9, 0)iOS 9.0
QSysInfo::MV_IOS_9_1Q_MV_IOS(9, 1)iOS 9.1
QSysInfo::MV_IOS_9_2Q_MV_IOS(9, 2)iOS 9.2
QSysInfo::MV_IOS_9_3Q_MV_IOS(9, 3)iOS 9.3
QSysInfo::MV_IOS_10_0Q_MV_IOS(10, 0)iOS 10.0
QSysInfo::MV_TVOS1 << 9tvOS (any)
QSysInfo::MV_TVOS_9_0Q_MV_TVOS(9, 0)tvOS 9.0
QSysInfo::MV_TVOS_9_1Q_MV_TVOS(9, 1)tvOS 9.1
QSysInfo::MV_TVOS_9_2Q_MV_TVOS(9, 2)tvOS 9.2
QSysInfo::MV_TVOS_10_0Q_MV_TVOS(10, 0)tvOS 10.0
QSysInfo::MV_WATCHOS1 << 10watchOS (any)
QSysInfo::MV_WATCHOS_2_0Q_MV_WATCHOS(2, 0)watchOS 2.0
QSysInfo::MV_WATCHOS_2_1Q_MV_WATCHOS(2, 1)watchOS 2.1
QSysInfo::MV_WATCHOS_2_2Q_MV_WATCHOS(2, 2)watchOS 2.2
QSysInfo::MV_WATCHOS_3_0Q_MV_WATCHOS(3, 0)watchOS 3.0
QSysInfo::MV_None0xffffNot a Darwin operating system

See also WinVersion.

enum QSysInfo::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:

ConstantValueDescription
QSysInfo::WV_32s0x0001Windows 3.1 with Win 32s
QSysInfo::WV_950x0002Windows 95
QSysInfo::WV_980x0003Windows 98
QSysInfo::WV_Me0x0004Windows Me

NT-based versions (note that each operating system version is only represented once rather than each Windows edition):

ConstantValueDescription
QSysInfo::WV_NT0x0010Windows NT (operating system version 4.0)
QSysInfo::WV_20000x0020Windows 2000 (operating system version 5.0)
QSysInfo::WV_XP0x0030Windows XP (operating system version 5.1)
QSysInfo::WV_20030x0040Windows Server 2003, Windows Server 2003 R2, Windows Home Server, Windows XP Professional x64 Edition (operating system version 5.2)
QSysInfo::WV_VISTA0x0080Windows Vista, Windows Server 2008 (operating system version 6.0)
QSysInfo::WV_WINDOWS70x0090Windows 7, Windows Server 2008 R2 (operating system version 6.1)
QSysInfo::WV_WINDOWS80x00a0Windows 8 (operating system version 6.2)
QSysInfo::WV_WINDOWS8_10x00b0Windows 8.1 (operating system version 6.3), introduced in Qt 5.2
QSysInfo::WV_WINDOWS100x00c0Windows 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:

ConstantValueDescription
QSysInfo::WV_4_0WV_NTOperating system version 4.0, corresponds to Windows NT
QSysInfo::WV_5_0WV_2000Operating system version 5.0, corresponds to Windows 2000
QSysInfo::WV_5_1WV_XPOperating system version 5.1, corresponds to Windows XP
QSysInfo::WV_5_2WV_2003Operating 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_0WV_VISTAOperating system version 6.0, corresponds to Windows Vista and Windows Server 2008
QSysInfo::WV_6_1WV_WINDOWS7Operating system version 6.1, corresponds to Windows 7 and Windows Server 2008 R2
QSysInfo::WV_6_2WV_WINDOWS8Operating system version 6.2, corresponds to Windows 8
QSysInfo::WV_6_3WV_WINDOWS8_1Operating system version 6.3, corresponds to Windows 8.1, introduced in Qt 5.2
QSysInfo::WV_10_0WV_WINDOWS10Operating 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:

ConstantValueDescription
QSysInfo::WV_DOS_based0x000fMS-DOS-based version of Windows
QSysInfo::WV_NT_based0x00f0NT-based version of Windows
QSysInfo::WV_None0x0000Operating system other than Windows.

See also MacVersion.

Member Function Documentation

[static] QSysInfo::MacVersion QSysInfo::macVersion()

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

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()

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Returns the version of the Windows operating system on which the application is run, or WV_None if the operating system is not Windows.

This function was introduced in Qt 4.4.

© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.