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.MacVersion

This enum provides symbolic names for the various versions of the Macintosh operating system. On Mac, the QSysInfo.MacintoshVersion variable gives the version of the system on which the application is run.

ConstantValueDescription
QSysInfo.MV_90x0001Mac OS 9 (unsupported)
QSysInfo.MV_10_00x0002Mac OS X 10.0 (unsupported)
QSysInfo.MV_10_10x0003Mac OS X 10.1 (unsupported)
QSysInfo.MV_10_20x0004Mac OS X 10.2 (unsupported)
QSysInfo.MV_10_30x0005Mac OS X 10.3
QSysInfo.MV_10_40x0006Mac OS X 10.4
QSysInfo.MV_10_50x0007Mac OS X 10.5
QSysInfo.MV_10_60x0008Mac OS X 10.6
QSysInfo.MV_Unknown0x0000An unknown and currently unsupported platform
QSysInfo.MV_CHEETAHMV_10_0Apple codename for MV_10_0
QSysInfo.MV_PUMAMV_10_1Apple codename for MV_10_1
QSysInfo.MV_JAGUARMV_10_2Apple codename for MV_10_2
QSysInfo.MV_PANTHERMV_10_3Apple codename for MV_10_3
QSysInfo.MV_TIGERMV_10_4Apple codename for MV_10_4
QSysInfo.MV_LEOPARDMV_10_5Apple codename for MV_10_5
QSysInfo.MV_SNOWLEOPARDMV_10_6Apple codename for MV_10_6

See also WinVersion and SymbianVersion.

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).


Method Documentation

QSysInfo.__init__ (self)

QSysInfo.__init__ (self, QSysInfo)


Member Documentation

MacVersion MacintoshVersion

This member should be treated as a constant.

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


PyQt 4.7.6 for MacOSCopyright © Riverbank Computing Ltd and Nokia 2010Qt 4.6.3