class QOperatingSystemVersionBase

Inherited by: QOperatingSystemVersionUnexported, QOperatingSystemVersion

Added in version 6.3.

Synopsis

Methods

Static functions

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

class OSType
__init__()
__init__(osType, vmajor[, vminor=-1[, vmicro=-1]])
Parameters:
  • osTypeOSType

  • vmajor – int

  • vminor – int

  • vmicro – int

static compare(v1, v2)
Parameters:
Return type:

int

static current()
Return type:

QOperatingSystemVersionBase

static currentType()
Return type:

OSType

majorVersion()
Return type:

int

microVersion()
Return type:

int

minorVersion()
Return type:

int

name()
Return type:

str

static name(osversion)
Parameters:

osversionQOperatingSystemVersionBase

Return type:

str

__lt__(rhs)
Parameters:

rhsQOperatingSystemVersionBase

Return type:

bool

__le__(rhs)
Parameters:

rhsQOperatingSystemVersionBase

Return type:

bool

__gt__(rhs)
Parameters:

rhsQOperatingSystemVersionBase

Return type:

bool

__ge__(rhs)
Parameters:

rhsQOperatingSystemVersionBase

Return type:

bool

segmentCount()
Return type:

int

type()
Return type:

OSType

version()
Return type:

QVersionNumber