Home · All Classes · Modules

QSysInfo Class Reference
[QtCore module]

The QSysInfo class provides information about the system. More...

Types

Methods

Static Members


Detailed Description

The QSysInfo class provides information about the system.

Some constants are defined only on certain platforms. You can use the preprocessor symbols Q_WS_WIN and Q_WS_MAC to test that the application is compiled under Windows or Mac.

See also QLibraryInfo.


Type Documentation

QSysInfo.Endian

ConstantValueDescription
QSysInfo.BigEndian0Big-endian byte order (also called Network byte order)
QSysInfo.LittleEndian1Little-endian byte order
QSysInfo.ByteOrder<platform-dependent>Equals BigEndian or LittleEndian, depending on the platform's byte order.

QSysInfo.Sizes

This enum provides platform-specific information about the sizes of data structures used by the underlying architecture.

ConstantValueDescription
QSysInfo.WordSize( sizeof( void * ) <<3 )The size in bits of a pointer for the platform on which the application is compiled (32 or 64).

QSysInfo.WinVersion

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:

ConstantValueDescription
QSysInfo.WV_NT0x0010Windows NT
QSysInfo.WV_20000x0020Windows 2000
QSysInfo.WV_XP0x0030Windows XP
QSysInfo.WV_20030x0040Windows Server 2003
QSysInfo.WV_VISTA0x0080Windows Vista

CE-based versions:

ConstantValueDescription
QSysInfo.WV_CE0x0100Windows CE
QSysInfo.WV_CENET0x0200Windows CE .NET
QSysInfo.WV_CE_50x0300Windows CE 5.x
QSysInfo.WV_CE_60x0400Windows CE 6.x

The following masks can be used for testing whether a Windows version is MS-DOS-based, NT-based, or CE-based:

ConstantValueDescription
QSysInfo.WV_DOS_based0x000fMS-DOS-based version of Windows
QSysInfo.WV_NT_based0x00f0NT-based version of Windows
QSysInfo.WV_CE_based0x0f00CE-based version of Windows

See also MacVersion.


Method Documentation

QSysInfo.__init__ (self)

QSysInfo.__init__ (self, QSysInfo other)


Member Documentation

WinVersion WindowsVersion

This member should be treated as a constant.

This variable holds the version of the Windows operating system on which the application is run (Windows only).


PyQt 4.4.3 for WindowsCopyright © Riverbank Computing Ltd and Trolltech AS 2008Qt 4.4.1