
This documentation was introduced in Qt 5.9.
QT FOR MAC SIERRA ANDROID
This variable holds a version corresponding to Android Jelly Bean, maintenance release 1 (version 4.2, API level 17). const QOperatingSystemVersion QOperatingSystemVersion:: AndroidJellyBean_MR1 This variable holds a version corresponding to Android Jelly Bean (version 4.1, API level 16). const QOperatingSystemVersion QOperatingSystemVersion:: AndroidJellyBean This documentation was introduced in Qt 6.1. This variable holds a version corresponding to Android 11 (version 11.0, API level 30). const QOperatingSystemVersion QOperatingSystemVersion:: Android11 This variable holds a version corresponding to Android 10 (version 10.0, API level 29). Member Variable Documentation const QOperatingSystemVersion QOperatingSystemVersion:: Android10 See also majorVersion(), minorVersion(), and microVersion(). See the main class documentation for what the version number is on a given operating system. Returns the operating system's version number. QVersionNumber QOperatingSystemVersion:: version() const Returns the OS type identified by the QOperatingSystemVersion. QOperatingSystemVersion::OSType QOperatingSystemVersion:: type() const Returns the number of integers stored in the version number. int QOperatingSystemVersion:: segmentCount() const Returns a string representation of the OS type identified by the QOperatingSystemVersion. QString QOperatingSystemVersion:: name() const See also version(), majorVersion(), and microVersion(). See the main class documentation for what the minor version number is on a given operating system. Returns the minor version number, that is, the second segment of the operating system's version number. int QOperatingSystemVersion:: minorVersion() const See also version(), majorVersion(), and minorVersion(). See the main class documentation for what the micro version number is on a given operating system. Returns the micro version number, that is, the third segment of the operating system's version number. int QOperatingSystemVersion:: microVersion() const See also version(), minorVersion(), and microVersion().

1 indicates an unknown or absent version number component. See the main class documentation for what the major version number is on a given operating system. Returns the major version number, that is, the first segment of the operating system's version number. int QOperatingSystemVersion:: majorVersion() const Returns whether the OS type identified by the QOperatingSystemVersion matches any of the OS types in types. bool QOperatingSystemVersion:: isAnyOfType( std::initializer_list types) const Returns the current OS type without constructing a QOperatingSystemVersion instance. QOperatingSystemVersion::OSType QOperatingSystemVersion:: currentType() Returns a QOperatingSystemVersion indicating the current OS and its version number. QOperatingSystemVersion QOperatingSystemVersion:: current() Member Function Documentation QOperatingSystemVersion:: QOperatingSystemVersion( QOperatingSystemVersion::OSType osType, int vmajor, int vminor = -1, int vmicro = -1)Ĭonstructs a QOperatingSystemVersion consisting of the OS type osType, and major, minor, and micro version numbers vmajor, vminor and vmicro, respectively. For example, on a macOS system running macOS Sierra (v10.12), the following expression will return false even though the major version number component of the object on the left hand side of the expression (10) is greater than that of the object on the right (9): MajorVersion, minorVersion, and patchVersion from NSProcessInfo.operatingSystemVersionĭwMajorVersion, dwMinorVersion, and dwBuildNumber from RtlGetVersion - note that this function ALWAYS return the version number of the underlying operating system, as opposed to the shim underneath GetVersionEx that hides the real version number if the application is not manifested for that version of the OSīecause QOperatingSystemVersion stores both a version number and an OS type, the OS type can be taken into account when performing comparisons. Result of parsing android.os. using QVersionNumber, with a fallback to android.os._INT to determine the major and minor version component if the former fails
