Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QOperatingSystemVersion Class Reference

\inmodule QtCore More...

#include <qoperatingsystemversion.h>

+ Inheritance diagram for QOperatingSystemVersion:
+ Collaboration diagram for QOperatingSystemVersion:

Public Member Functions

constexpr QOperatingSystemVersion (const QOperatingSystemVersionBase &osversion)
 
constexpr QOperatingSystemVersion (OSType osType, int vmajor, int vminor=-1, int vmicro=-1)
 Constructs a QOperatingSystemVersion consisting of the OS type osType, and major, minor, and micro version numbers vmajor, vminor and vmicro, respectively.
 
constexpr OSType type () const
 Returns the OS type identified by the QOperatingSystemVersion.
 
- Public Member Functions inherited from QOperatingSystemVersionBase
constexpr QOperatingSystemVersionBase (OSType osType, int vmajor, int vminor=-1, int vmicro=-1)
 
QVersionNumber version () const
 
constexpr int majorVersion () const
 
constexpr int minorVersion () const
 
constexpr int microVersion () const
 
constexpr int segmentCount () const
 
bool isAnyOfType (std::initializer_list< OSType > types) const
 
constexpr OSType type () const
 
QString name () const
 

Static Public Member Functions

static constexpr OSType currentType ()
 Returns the current OS type without constructing a QOperatingSystemVersion instance.
 
- Static Public Member Functions inherited from QOperatingSystemVersionBase
static Q_CORE_EXPORT QOperatingSystemVersionBase current ()
 
static Q_CORE_EXPORT QString name (QOperatingSystemVersionBase osversion)
 
static Q_CORE_EXPORT bool isAnyOfType (std::initializer_list< OSType > types, OSType type)
 
static constexpr OSType currentType ()
 

Static Public Attributes

static constexpr QOperatingSystemVersionBase MacOSSonoma { QOperatingSystemVersionBase::MacOS, 14, 0 }
 
static constexpr QOperatingSystemVersionBase MacOSSequoia { QOperatingSystemVersionBase::MacOS, 15, 0 }
 
static constexpr QOperatingSystemVersionBase Android14 { QOperatingSystemVersionBase::Android, 14, 0 }
 
static constexpr QOperatingSystemVersionBase Windows11_23H2 { QOperatingSystemVersionBase::Windows, 10, 0, 22631 }
 
static constexpr QOperatingSystemVersionBase Windows11_24H2 { QOperatingSystemVersionBase::Windows, 10, 0, 26100 }
 
static constexpr QOperatingSystemVersionBase Windows7 { QOperatingSystemVersionBase::Windows, 6, 1 }
 \variable QOperatingSystemVersion::Windows7
 
static constexpr QOperatingSystemVersionBase Windows8 { QOperatingSystemVersionBase::Windows, 6, 2 }
 \variable QOperatingSystemVersion::Windows8
 
static constexpr QOperatingSystemVersionBase Windows8_1 { QOperatingSystemVersionBase::Windows, 6, 3 }
 \variable QOperatingSystemVersion::Windows8_1
 
static constexpr QOperatingSystemVersionBase Windows10 { QOperatingSystemVersionBase::Windows, 10 }
 \variable QOperatingSystemVersion::Windows10
 
static constexpr QOperatingSystemVersionBase OSXMavericks { QOperatingSystemVersionBase::MacOS, 10, 9 }
 \variable QOperatingSystemVersion::Windows11_23H2
 
static constexpr QOperatingSystemVersionBase OSXYosemite { QOperatingSystemVersionBase::MacOS, 10, 10 }
 \variable QOperatingSystemVersion::OSXYosemite
 
static constexpr QOperatingSystemVersionBase OSXElCapitan { QOperatingSystemVersionBase::MacOS, 10, 11 }
 \variable QOperatingSystemVersion::OSXElCapitan
 
static constexpr QOperatingSystemVersionBase MacOSSierra { QOperatingSystemVersionBase::MacOS, 10, 12 }
 \variable QOperatingSystemVersion::MacOSSierra
 
static constexpr QOperatingSystemVersionBase MacOSHighSierra { QOperatingSystemVersionBase::MacOS, 10, 13 }
 \variable QOperatingSystemVersion::MacOSHighSierra
 
static constexpr QOperatingSystemVersionBase MacOSMojave { QOperatingSystemVersionBase::MacOS, 10, 14 }
 \variable QOperatingSystemVersion::MacOSMojave
 
static constexpr QOperatingSystemVersionBase MacOSCatalina { QOperatingSystemVersionBase::MacOS, 10, 15 }
 \variable QOperatingSystemVersion::MacOSCatalina
 
static constexpr QOperatingSystemVersionBase MacOSBigSur = { QOperatingSystemVersionBase::MacOS, 11, 0 }
 \variable QOperatingSystemVersion::MacOSBigSur
 
static constexpr QOperatingSystemVersionBase MacOSMonterey = { QOperatingSystemVersionBase::MacOS, 12, 0 }
 \variable QOperatingSystemVersion::MacOSMonterey
 
static constexpr QOperatingSystemVersionBase AndroidJellyBean { QOperatingSystemVersionBase::Android, 4, 1 }
 \variable QOperatingSystemVersion::MacOSSonoma
 
static constexpr QOperatingSystemVersionBase AndroidJellyBean_MR1 { QOperatingSystemVersionBase::Android, 4, 2 }
 \variable QOperatingSystemVersion::AndroidJellyBean_MR1
 
static constexpr QOperatingSystemVersionBase AndroidJellyBean_MR2 { QOperatingSystemVersionBase::Android, 4, 3 }
 \variable QOperatingSystemVersion::AndroidJellyBean_MR2
 
static constexpr QOperatingSystemVersionBase AndroidKitKat { QOperatingSystemVersionBase::Android, 4, 4 }
 \variable QOperatingSystemVersion::AndroidKitKat
 
static constexpr QOperatingSystemVersionBase AndroidLollipop { QOperatingSystemVersionBase::Android, 5, 0 }
 \variable QOperatingSystemVersion::AndroidLollipop
 
static constexpr QOperatingSystemVersionBase AndroidLollipop_MR1 { QOperatingSystemVersionBase::Android, 5, 1 }
 \variable QOperatingSystemVersion::AndroidLollipop_MR1
 
static constexpr QOperatingSystemVersionBase AndroidMarshmallow { QOperatingSystemVersionBase::Android, 6, 0 }
 \variable QOperatingSystemVersion::AndroidMarshmallow
 
static constexpr QOperatingSystemVersionBase AndroidNougat { QOperatingSystemVersionBase::Android, 7, 0 }
 \variable QOperatingSystemVersion::AndroidNougat
 
static constexpr QOperatingSystemVersionBase AndroidNougat_MR1 { QOperatingSystemVersionBase::Android, 7, 1 }
 \variable QOperatingSystemVersion::AndroidNougat_MR1
 
static constexpr QOperatingSystemVersionBase AndroidOreo { QOperatingSystemVersionBase::Android, 8, 0 }
 \variable QOperatingSystemVersion::AndroidOreo
 
static constexpr QOperatingSystemVersionBase AndroidOreo_MR1 { QOperatingSystemVersionBase::Android, 8, 1 }
 \variable QOperatingSystemVersion::AndroidOreo_MR1
 
static constexpr QOperatingSystemVersionBase AndroidPie { QOperatingSystemVersionBase::Android, 9, 0 }
 \variable QOperatingSystemVersion::AndroidPie
 
static constexpr QOperatingSystemVersionBase Android10 { QOperatingSystemVersionBase::Android, 10, 0 }
 \variable QOperatingSystemVersion::Android10
 
static constexpr QOperatingSystemVersionBase Android11 { QOperatingSystemVersionBase::Android, 11, 0 }
 \variable QOperatingSystemVersion::Android11
 
static constexpr QOperatingSystemVersionBase Windows10_1809 { QOperatingSystemVersionBase::Windows, 10, 0, 17763 }
 \variable QOperatingSystemVersion::Windows10_1809
 
static constexpr QOperatingSystemVersionBase Windows10_1903 { QOperatingSystemVersionBase::Windows, 10, 0, 18362 }
 \variable QOperatingSystemVersion::Windows10_1903
 
static constexpr QOperatingSystemVersionBase Windows10_1909 { QOperatingSystemVersionBase::Windows, 10, 0, 18363 }
 \variable QOperatingSystemVersion::Windows10_1909
 
static constexpr QOperatingSystemVersionBase Windows10_2004 { QOperatingSystemVersionBase::Windows, 10, 0, 19041 }
 \variable QOperatingSystemVersion::Windows10_2004
 
static constexpr QOperatingSystemVersionBase Windows10_20H2 { QOperatingSystemVersionBase::Windows, 10, 0, 19042 }
 \variable QOperatingSystemVersion::Windows10_20H2
 
static constexpr QOperatingSystemVersionBase Windows10_21H1 { QOperatingSystemVersionBase::Windows, 10, 0, 19043 }
 \variable QOperatingSystemVersion::Windows10_21H1
 
static constexpr QOperatingSystemVersionBase Windows10_21H2 { QOperatingSystemVersionBase::Windows, 10, 0, 19044 }
 \variable QOperatingSystemVersion::Windows10_21H2
 
static constexpr QOperatingSystemVersionBase Windows10_22H2 { QOperatingSystemVersionBase::Windows, 10, 0, 19045 }
 \variable QOperatingSystemVersion::Windows10_22H2
 
static constexpr QOperatingSystemVersionBase Windows11 { QOperatingSystemVersionBase::Windows, 10, 0, 22000 }
 \variable QOperatingSystemVersion::Windows11
 
static constexpr QOperatingSystemVersionBase Windows11_21H2 = Windows11
 \variable QOperatingSystemVersion::Windows11_21H2
 
static constexpr QOperatingSystemVersionBase Windows11_22H2 { QOperatingSystemVersionBase::Windows, 10, 0, 22621 }
 \variable QOperatingSystemVersion::Windows11_22H2
 
static constexpr QOperatingSystemVersionBase Android12 { QOperatingSystemVersionBase::Android, 12, 0 }
 \variable QOperatingSystemVersion::Android12
 
static constexpr QOperatingSystemVersionBase Android12L { QOperatingSystemVersionBase::Android, 12, 0 }
 \variable QOperatingSystemVersion::Android12L
 
static constexpr QOperatingSystemVersionBase Android13 { QOperatingSystemVersionBase::Android, 13, 0 }
 \variable QOperatingSystemVersion::Android13
 
static constexpr QOperatingSystemVersionBase MacOSVentura { QOperatingSystemVersionBase::MacOS, 13, 0 }
 \variable QOperatingSystemVersion::MacOSVentura
 

Additional Inherited Members

- Public Types inherited from QOperatingSystemVersionBase
enum  OSType {
  Unknown = 0 , Windows , MacOS , IOS ,
  TvOS , WatchOS , Android , VisionOS
}
 
- Protected Member Functions inherited from QOperatingSystemVersionBase
 QOperatingSystemVersionBase ()=default
 
- Static Protected Member Functions inherited from QOperatingSystemVersionBase
static Q_CORE_EXPORT int compare (QOperatingSystemVersionBase v1, QOperatingSystemVersionBase v2) noexcept
 

Detailed Description

\inmodule QtCore

Since
5.9

The QOperatingSystemVersion class provides information about the operating system version.

Unlike other version functions in QSysInfo, QOperatingSystemVersion provides access to the full version number that developers typically use to vary behavior or determine whether to enable APIs or features based on the operating system version (as opposed to the kernel version number or marketing version).

Presently, Android, Apple Platforms (iOS, macOS, tvOS, watchOS, and visionOS), and Windows are supported.

The majorVersion(), minorVersion(), and microVersion() functions return the parts of the operating system version number based on:

\table \header

Because QOperatingSystemVersion stores both a version number and an OS type, the OS type can be taken into account when performing comparisons. 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):

This allows expressions for multiple operating systems to be joined with a logical OR operator and still work as expected. For example:

auto current = QOperatingSystemVersion::current();
if (current >= QOperatingSystemVersion::OSXYosemite ||
// returns true on macOS >= 10.10 and iOS >= 8.0, but false on macOS < 10.10 and iOS < 8.0
}
static Q_CORE_EXPORT QOperatingSystemVersionBase current()

A more naive comparison algorithm might incorrectly return true on all versions of macOS, including Mac OS 9. This behavior is achieved by overloading the comparison operators to return false whenever the OS types of the QOperatingSystemVersion instances being compared do not match. Be aware that due to this it can be the case x >= y and x < y are BOTH false for the same instances of x and y.

Definition at line 138 of file qoperatingsystemversion.h.

Constructor & Destructor Documentation

◆ QOperatingSystemVersion() [1/2]

QOperatingSystemVersion::QOperatingSystemVersion ( const QOperatingSystemVersionBase & osversion)
inlineconstexpr

Definition at line 255 of file qoperatingsystemversion.h.

◆ QOperatingSystemVersion() [2/2]

QOperatingSystemVersion::QOperatingSystemVersion ( OSType osType,
int vmajor,
int vminor = -1,
int vmicro = -1 )
inlineconstexpr

Constructs a QOperatingSystemVersion consisting of the OS type osType, and major, minor, and micro version numbers vmajor, vminor and vmicro, respectively.

Definition at line 258 of file qoperatingsystemversion.h.

References QOperatingSystemVersionBase::QOperatingSystemVersionBase().

+ Here is the call graph for this function:

Member Function Documentation

◆ currentType()

static constexpr OSType QOperatingSystemVersion::currentType ( )
inlinestaticconstexpr

Returns the current OS type without constructing a QOperatingSystemVersion instance.

Since
5.10
See also
current()

Definition at line 268 of file qoperatingsystemversion.h.

References QOperatingSystemVersionBase::currentType().

+ Here is the call graph for this function:

◆ type()

OSType QOperatingSystemVersion::type ( ) const
inlineconstexpr

Returns the OS type identified by the QOperatingSystemVersion.

See also
name()

Definition at line 284 of file qoperatingsystemversion.h.

References QOperatingSystemVersionBase::type().

+ Here is the call graph for this function:

Member Data Documentation

◆ Android10

const QOperatingSystemVersion QOperatingSystemVersion::Android10 { QOperatingSystemVersionBase::Android, 10, 0 }
staticconstexpr

\variable QOperatingSystemVersion::Android10

a version corresponding to Android 10 (version 10.0, API level 29).

Since
6.1

Definition at line 233 of file qoperatingsystemversion.h.

◆ Android11

const QOperatingSystemVersion QOperatingSystemVersion::Android11 { QOperatingSystemVersionBase::Android, 11, 0 }
staticconstexpr

\variable QOperatingSystemVersion::Android11

a version corresponding to Android 11 (version 11.0, API level 30).

Since
6.1

Definition at line 234 of file qoperatingsystemversion.h.

◆ Android12

const QOperatingSystemVersionBase QOperatingSystemVersion::Android12 { QOperatingSystemVersionBase::Android, 12, 0 }
staticconstexpr

\variable QOperatingSystemVersion::Android12

a version corresponding to Android 12 (version 12.0, API level 31).

Since
6.5

Definition at line 249 of file qoperatingsystemversion.h.

◆ Android12L

const QOperatingSystemVersionBase QOperatingSystemVersion::Android12L { QOperatingSystemVersionBase::Android, 12, 0 }
staticconstexpr

\variable QOperatingSystemVersion::Android12L

a version corresponding to Android 12L (version 12.0, API level 32).

Since
6.5

Definition at line 250 of file qoperatingsystemversion.h.

◆ Android13

const QOperatingSystemVersionBase QOperatingSystemVersion::Android13 { QOperatingSystemVersionBase::Android, 13, 0 }
staticconstexpr

\variable QOperatingSystemVersion::Android13

a version corresponding to Android 13 (version 13.0, API level 33).

Since
6.5

Definition at line 251 of file qoperatingsystemversion.h.

◆ Android14

QOperatingSystemVersionBase QOperatingSystemVersion::Android14 { QOperatingSystemVersionBase::Android, 14, 0 }
staticconstexpr

Definition at line 147 of file qoperatingsystemversion.h.

◆ AndroidJellyBean

const QOperatingSystemVersion QOperatingSystemVersion::AndroidJellyBean { QOperatingSystemVersionBase::Android, 4, 1 }
staticconstexpr

\variable QOperatingSystemVersion::MacOSSonoma

a version corresponding to macOS Sonoma (version 14).

Since
6.5

\variable QOperatingSystemVersion::MacOSSequoia

a version corresponding to macOS Sequoia (version 15).

Since
6.8

\variable QOperatingSystemVersion::AndroidJellyBean

a version corresponding to Android Jelly Bean (version 4.1, API level 16).

Since
5.9

Definition at line 221 of file qoperatingsystemversion.h.

◆ AndroidJellyBean_MR1

const QOperatingSystemVersion QOperatingSystemVersion::AndroidJellyBean_MR1 { QOperatingSystemVersionBase::Android, 4, 2 }
staticconstexpr

\variable QOperatingSystemVersion::AndroidJellyBean_MR1

a version corresponding to Android Jelly Bean, maintenance release 1 (version 4.2, API level 17).

Since
5.9

Definition at line 222 of file qoperatingsystemversion.h.

◆ AndroidJellyBean_MR2

const QOperatingSystemVersion QOperatingSystemVersion::AndroidJellyBean_MR2 { QOperatingSystemVersionBase::Android, 4, 3 }
staticconstexpr

\variable QOperatingSystemVersion::AndroidJellyBean_MR2

a version corresponding to Android Jelly Bean, maintenance release 2 (version 4.3, API level 18).

Since
5.9

Definition at line 223 of file qoperatingsystemversion.h.

◆ AndroidKitKat

const QOperatingSystemVersion QOperatingSystemVersion::AndroidKitKat { QOperatingSystemVersionBase::Android, 4, 4 }
staticconstexpr

\variable QOperatingSystemVersion::AndroidKitKat

a version corresponding to Android KitKat (versions 4.4 & 4.4W, API levels 19 & 20).

Since
5.9

Definition at line 224 of file qoperatingsystemversion.h.

◆ AndroidLollipop

const QOperatingSystemVersion QOperatingSystemVersion::AndroidLollipop { QOperatingSystemVersionBase::Android, 5, 0 }
staticconstexpr

\variable QOperatingSystemVersion::AndroidLollipop

a version corresponding to Android Lollipop (version 5.0, API level 21).

Since
5.9

Definition at line 225 of file qoperatingsystemversion.h.

◆ AndroidLollipop_MR1

const QOperatingSystemVersion QOperatingSystemVersion::AndroidLollipop_MR1 { QOperatingSystemVersionBase::Android, 5, 1 }
staticconstexpr

\variable QOperatingSystemVersion::AndroidLollipop_MR1

a version corresponding to Android Lollipop, maintenance release 1 (version 5.1, API level 22).

Since
5.9

Definition at line 226 of file qoperatingsystemversion.h.

◆ AndroidMarshmallow

const QOperatingSystemVersion QOperatingSystemVersion::AndroidMarshmallow { QOperatingSystemVersionBase::Android, 6, 0 }
staticconstexpr

\variable QOperatingSystemVersion::AndroidMarshmallow

a version corresponding to Android Marshmallow (version 6.0, API level 23).

Since
5.9

Definition at line 227 of file qoperatingsystemversion.h.

◆ AndroidNougat

const QOperatingSystemVersion QOperatingSystemVersion::AndroidNougat { QOperatingSystemVersionBase::Android, 7, 0 }
staticconstexpr

\variable QOperatingSystemVersion::AndroidNougat

a version corresponding to Android Nougat (version 7.0, API level 24).

Since
5.9

Definition at line 228 of file qoperatingsystemversion.h.

◆ AndroidNougat_MR1

const QOperatingSystemVersion QOperatingSystemVersion::AndroidNougat_MR1 { QOperatingSystemVersionBase::Android, 7, 1 }
staticconstexpr

\variable QOperatingSystemVersion::AndroidNougat_MR1

a version corresponding to Android Nougat, maintenance release 1 (version 7.0, API level 25).

Since
5.9

Definition at line 229 of file qoperatingsystemversion.h.

◆ AndroidOreo

const QOperatingSystemVersion QOperatingSystemVersion::AndroidOreo { QOperatingSystemVersionBase::Android, 8, 0 }
staticconstexpr

\variable QOperatingSystemVersion::AndroidOreo

a version corresponding to Android Oreo (version 8.0, API level 26).

Since
5.9.2

Definition at line 230 of file qoperatingsystemversion.h.

◆ AndroidOreo_MR1

const QOperatingSystemVersion QOperatingSystemVersion::AndroidOreo_MR1 { QOperatingSystemVersionBase::Android, 8, 1 }
staticconstexpr

\variable QOperatingSystemVersion::AndroidOreo_MR1

a version corresponding to Android Oreo_MR1 (version 8.1, API level 27).

Since
6.1

Definition at line 231 of file qoperatingsystemversion.h.

◆ AndroidPie

const QOperatingSystemVersion QOperatingSystemVersion::AndroidPie { QOperatingSystemVersionBase::Android, 9, 0 }
staticconstexpr

\variable QOperatingSystemVersion::AndroidPie

a version corresponding to Android Pie (version 9.0, API level 28).

Since
6.1

Definition at line 232 of file qoperatingsystemversion.h.

◆ MacOSBigSur

const QOperatingSystemVersion QOperatingSystemVersion::MacOSBigSur = { QOperatingSystemVersionBase::MacOS, 11, 0 }
staticconstexpr

\variable QOperatingSystemVersion::MacOSBigSur

a version corresponding to macOS Big Sur (version 11).

Since
6.0

Definition at line 218 of file qoperatingsystemversion.h.

◆ MacOSCatalina

const QOperatingSystemVersion QOperatingSystemVersion::MacOSCatalina { QOperatingSystemVersionBase::MacOS, 10, 15 }
staticconstexpr

\variable QOperatingSystemVersion::MacOSCatalina

a version corresponding to macOS Catalina (version 10.15).

Since
5.12.5

Definition at line 217 of file qoperatingsystemversion.h.

◆ MacOSHighSierra

const QOperatingSystemVersion QOperatingSystemVersion::MacOSHighSierra { QOperatingSystemVersionBase::MacOS, 10, 13 }
staticconstexpr

\variable QOperatingSystemVersion::MacOSHighSierra

a version corresponding to macOS High Sierra (version 10.13).

Since
5.9.1

Definition at line 215 of file qoperatingsystemversion.h.

◆ MacOSMojave

const QOperatingSystemVersion QOperatingSystemVersion::MacOSMojave { QOperatingSystemVersionBase::MacOS, 10, 14 }
staticconstexpr

\variable QOperatingSystemVersion::MacOSMojave

a version corresponding to macOS Mojave (version 10.14).

Since
5.11.2

Definition at line 216 of file qoperatingsystemversion.h.

◆ MacOSMonterey

const QOperatingSystemVersion QOperatingSystemVersion::MacOSMonterey = { QOperatingSystemVersionBase::MacOS, 12, 0 }
staticconstexpr

\variable QOperatingSystemVersion::MacOSMonterey

a version corresponding to macOS Monterey (version 12).

Since
6.3

Definition at line 219 of file qoperatingsystemversion.h.

◆ MacOSSequoia

QOperatingSystemVersionBase QOperatingSystemVersion::MacOSSequoia { QOperatingSystemVersionBase::MacOS, 15, 0 }
staticconstexpr

Definition at line 146 of file qoperatingsystemversion.h.

◆ MacOSSierra

const QOperatingSystemVersion QOperatingSystemVersion::MacOSSierra { QOperatingSystemVersionBase::MacOS, 10, 12 }
staticconstexpr

\variable QOperatingSystemVersion::MacOSSierra

a version corresponding to macOS Sierra (version 10.12).

Since
5.9

Definition at line 214 of file qoperatingsystemversion.h.

◆ MacOSSonoma

QOperatingSystemVersionBase QOperatingSystemVersion::MacOSSonoma { QOperatingSystemVersionBase::MacOS, 14, 0 }
staticconstexpr

Definition at line 145 of file qoperatingsystemversion.h.

◆ MacOSVentura

const QOperatingSystemVersionBase QOperatingSystemVersion::MacOSVentura { QOperatingSystemVersionBase::MacOS, 13, 0 }
staticconstexpr

\variable QOperatingSystemVersion::MacOSVentura

a version corresponding to macOS Ventura (version 13).

Since
6.4

Definition at line 253 of file qoperatingsystemversion.h.

◆ OSXElCapitan

const QOperatingSystemVersion QOperatingSystemVersion::OSXElCapitan { QOperatingSystemVersionBase::MacOS, 10, 11 }
staticconstexpr

\variable QOperatingSystemVersion::OSXElCapitan

a version corresponding to OS X El Capitan (version 10.11).

Since
5.9

Definition at line 213 of file qoperatingsystemversion.h.

◆ OSXMavericks

const QOperatingSystemVersion QOperatingSystemVersion::OSXMavericks { QOperatingSystemVersionBase::MacOS, 10, 9 }
staticconstexpr

\variable QOperatingSystemVersion::Windows11_23H2

a version corresponding to Windows 11 Version 23H2 (version 10.0.22631).

Since
6.6

\variable QOperatingSystemVersion::Windows11_24H2

a version corresponding to Windows 11 Version 24H2 (version 10.0.26100).

Since
6.8.1

\variable QOperatingSystemVersion::OSXMavericks

a version corresponding to OS X Mavericks (version 10.9).

Since
5.9

Definition at line 211 of file qoperatingsystemversion.h.

◆ OSXYosemite

const QOperatingSystemVersion QOperatingSystemVersion::OSXYosemite { QOperatingSystemVersionBase::MacOS, 10, 10 }
staticconstexpr

\variable QOperatingSystemVersion::OSXYosemite

a version corresponding to OS X Yosemite (version 10.10).

Since
5.9

Definition at line 212 of file qoperatingsystemversion.h.

◆ Windows10

const QOperatingSystemVersion QOperatingSystemVersion::Windows10 { QOperatingSystemVersionBase::Windows, 10 }
staticconstexpr

\variable QOperatingSystemVersion::Windows10

a version corresponding to general Windows 10 (version 10.0).

Since
5.9

Definition at line 209 of file qoperatingsystemversion.h.

◆ Windows10_1809

const QOperatingSystemVersionBase QOperatingSystemVersion::Windows10_1809 { QOperatingSystemVersionBase::Windows, 10, 0, 17763 }
staticconstexpr

\variable QOperatingSystemVersion::Windows10_1809

a version corresponding to Windows 10 October 2018 Update Version 1809 (version 10.0.17763).

Since
6.3

Definition at line 237 of file qoperatingsystemversion.h.

◆ Windows10_1903

const QOperatingSystemVersionBase QOperatingSystemVersion::Windows10_1903 { QOperatingSystemVersionBase::Windows, 10, 0, 18362 }
staticconstexpr

\variable QOperatingSystemVersion::Windows10_1903

a version corresponding to Windows 10 May 2019 Update Version 1903 (version 10.0.18362).

Since
6.3

Definition at line 238 of file qoperatingsystemversion.h.

◆ Windows10_1909

const QOperatingSystemVersionBase QOperatingSystemVersion::Windows10_1909 { QOperatingSystemVersionBase::Windows, 10, 0, 18363 }
staticconstexpr

\variable QOperatingSystemVersion::Windows10_1909

a version corresponding to Windows 10 November 2019 Update Version 1909 (version 10.0.18363).

Since
6.3

Definition at line 239 of file qoperatingsystemversion.h.

◆ Windows10_2004

const QOperatingSystemVersionBase QOperatingSystemVersion::Windows10_2004 { QOperatingSystemVersionBase::Windows, 10, 0, 19041 }
staticconstexpr

\variable QOperatingSystemVersion::Windows10_2004

a version corresponding to Windows 10 May 2020 Update Version 2004 (version 10.0.19041).

Since
6.3

Definition at line 240 of file qoperatingsystemversion.h.

◆ Windows10_20H2

const QOperatingSystemVersionBase QOperatingSystemVersion::Windows10_20H2 { QOperatingSystemVersionBase::Windows, 10, 0, 19042 }
staticconstexpr

\variable QOperatingSystemVersion::Windows10_20H2

a version corresponding to Windows 10 October 2020 Update Version 20H2 (version 10.0.19042).

Since
6.3

Definition at line 241 of file qoperatingsystemversion.h.

◆ Windows10_21H1

const QOperatingSystemVersionBase QOperatingSystemVersion::Windows10_21H1 { QOperatingSystemVersionBase::Windows, 10, 0, 19043 }
staticconstexpr

\variable QOperatingSystemVersion::Windows10_21H1

a version corresponding to Windows 10 May 2021 Update Version 21H1 (version 10.0.19043).

Since
6.3

Definition at line 242 of file qoperatingsystemversion.h.

◆ Windows10_21H2

const QOperatingSystemVersionBase QOperatingSystemVersion::Windows10_21H2 { QOperatingSystemVersionBase::Windows, 10, 0, 19044 }
staticconstexpr

\variable QOperatingSystemVersion::Windows10_21H2

a version corresponding to Windows 10 November 2021 Update Version 21H2 (version 10.0.19044).

Since
6.3

Definition at line 243 of file qoperatingsystemversion.h.

◆ Windows10_22H2

const QOperatingSystemVersionBase QOperatingSystemVersion::Windows10_22H2 { QOperatingSystemVersionBase::Windows, 10, 0, 19045 }
staticconstexpr

\variable QOperatingSystemVersion::Windows10_22H2

a version corresponding to Windows 10 October 2022 Update Version 22H2 (version 10.0.19045).

Since
6.5

Definition at line 244 of file qoperatingsystemversion.h.

◆ Windows11

const QOperatingSystemVersionBase QOperatingSystemVersion::Windows11 { QOperatingSystemVersionBase::Windows, 10, 0, 22000 }
staticconstexpr

\variable QOperatingSystemVersion::Windows11

a version corresponding to the initial release of Windows 11 (version 10.0.22000).

Since
6.3

Definition at line 245 of file qoperatingsystemversion.h.

◆ Windows11_21H2

const QOperatingSystemVersionBase QOperatingSystemVersion::Windows11_21H2 = Windows11
staticconstexpr

\variable QOperatingSystemVersion::Windows11_21H2

a version corresponding to Windows 11 Version 21H2 (version 10.0.22000).

Since
6.4

Definition at line 246 of file qoperatingsystemversion.h.

◆ Windows11_22H2

const QOperatingSystemVersionBase QOperatingSystemVersion::Windows11_22H2 { QOperatingSystemVersionBase::Windows, 10, 0, 22621 }
staticconstexpr

\variable QOperatingSystemVersion::Windows11_22H2

a version corresponding to Windows 11 Version 22H2 (version 10.0.22621).

Since
6.4

Definition at line 247 of file qoperatingsystemversion.h.

◆ Windows11_23H2

QOperatingSystemVersionBase QOperatingSystemVersion::Windows11_23H2 { QOperatingSystemVersionBase::Windows, 10, 0, 22631 }
staticconstexpr

Definition at line 148 of file qoperatingsystemversion.h.

◆ Windows11_24H2

QOperatingSystemVersionBase QOperatingSystemVersion::Windows11_24H2 { QOperatingSystemVersionBase::Windows, 10, 0, 26100 }
staticconstexpr

Definition at line 149 of file qoperatingsystemversion.h.

◆ Windows7

const QOperatingSystemVersion QOperatingSystemVersion::Windows7 { QOperatingSystemVersionBase::Windows, 6, 1 }
staticconstexpr

\variable QOperatingSystemVersion::Windows7

a version corresponding to Windows 7 (version 6.1).

Since
5.9

Definition at line 206 of file qoperatingsystemversion.h.

◆ Windows8

const QOperatingSystemVersion QOperatingSystemVersion::Windows8 { QOperatingSystemVersionBase::Windows, 6, 2 }
staticconstexpr

\variable QOperatingSystemVersion::Windows8

a version corresponding to Windows 8 (version 6.2).

Since
5.9

Definition at line 207 of file qoperatingsystemversion.h.

◆ Windows8_1

const QOperatingSystemVersion QOperatingSystemVersion::Windows8_1 { QOperatingSystemVersionBase::Windows, 6, 3 }
staticconstexpr

\variable QOperatingSystemVersion::Windows8_1

a version corresponding to Windows 8.1 (version 6.3).

Since
5.9

Definition at line 208 of file qoperatingsystemversion.h.


The documentation for this class was generated from the following files: