|  | Qt 6.x
    The Qt SDK | 
#include <qoperatingsystemversion.h>
 Inheritance diagram for QOperatingSystemVersionBase:
 Inheritance diagram for QOperatingSystemVersionBase: Collaboration diagram for QOperatingSystemVersionBase:
 Collaboration diagram for QOperatingSystemVersionBase:| Public Types | |
| enum | OSType { Unknown = 0 , Windows , MacOS , IOS , TvOS , WatchOS , Android } | 
| Public Member Functions | |
| 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 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 () | 
| Protected Member Functions | |
| QOperatingSystemVersionBase ()=default | |
| Static Protected Member Functions | |
| static Q_CORE_EXPORT int | compare (QOperatingSystemVersionBase v1, QOperatingSystemVersionBase v2) | 
| Friends | |
| bool | operator> (QOperatingSystemVersionBase lhs, QOperatingSystemVersionBase rhs) | 
| bool | operator>= (QOperatingSystemVersionBase lhs, QOperatingSystemVersionBase rhs) | 
| bool | operator< (QOperatingSystemVersionBase lhs, QOperatingSystemVersionBase rhs) | 
| bool | operator<= (QOperatingSystemVersionBase lhs, QOperatingSystemVersionBase rhs) | 
Definition at line 14 of file qoperatingsystemversion.h.
| Enumerator | |
|---|---|
| Unknown | |
| Windows | |
| MacOS | |
| IOS | |
| TvOS | |
| WatchOS | |
| Android | |
Definition at line 19 of file qoperatingsystemversion.h.
| 
 | inlineconstexpr | 
Definition at line 29 of file qoperatingsystemversion.h.
| 
 | protecteddefault | 
| 
 | staticprotected | 
Definition at line 211 of file qoperatingsystemversion.cpp.
References compareVersionComponents().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Definition at line 123 of file qoperatingsystemversion.cpp.
Referenced by QOperatingSystemVersion::current().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inlinestaticconstexpr | 
Definition at line 41 of file qoperatingsystemversion.h.
References Android, IOS, MacOS, TvOS, Unknown, WatchOS, and Windows.
Referenced by QOperatingSystemVersion::currentType().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Definition at line 69 of file qoperatingsystemversion.h.
References isAnyOfType(), and type().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Definition at line 357 of file qoperatingsystemversion.cpp.
Referenced by isAnyOfType().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inlineconstexpr | 
Definition at line 62 of file qoperatingsystemversion.h.
Referenced by QOperatingSystemVersion::majorVersion(), and name().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inlineconstexpr | 
Definition at line 64 of file qoperatingsystemversion.h.
Referenced by QOperatingSystemVersion::microVersion().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inlineconstexpr | 
Definition at line 63 of file qoperatingsystemversion.h.
Referenced by QOperatingSystemVersion::minorVersion(), and name().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Definition at line 74 of file qoperatingsystemversion.h.
References name().
Referenced by name(), and QOperatingSystemVersion::name().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 314 of file qoperatingsystemversion.cpp.
References Android, IOS, MacOS, majorVersion(), minorVersion(), QStringLiteral, TvOS, type(), Unknown, WatchOS, and Windows.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | inlineconstexpr | 
Definition at line 66 of file qoperatingsystemversion.h.
Referenced by QOperatingSystemVersion::segmentCount().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inlineconstexpr | 
Definition at line 73 of file qoperatingsystemversion.h.
Referenced by isAnyOfType(), name(), and QOperatingSystemVersion::type().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | inline | 
Definition at line 60 of file qoperatingsystemversion.h.
Referenced by QOperatingSystemVersion::version().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | friend | 
Definition at line 82 of file qoperatingsystemversion.h.
| 
 | friend | 
Definition at line 85 of file qoperatingsystemversion.h.
| 
 | friend | 
Definition at line 76 of file qoperatingsystemversion.h.
| 
 | friend | 
Definition at line 79 of file qoperatingsystemversion.h.