PySide.QtCore.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.
另请参阅
PySide.QtCore.QLibraryInfo
| 常量 | 描述 |
|---|---|
| QSysInfo.BigEndian | Big-endian byte order (also called Network byte order) |
| QSysInfo.LittleEndian | 小端在前字节次序 |
| QSysInfo.ByteOrder | Equals BigEndian or LittleEndian , depending on the platform's byte order. |
This enum provides platform-specific information about the sizes of data structures used by the underlying architecture.
| 常量 | 描述 |
|---|---|
| QSysInfo.WordSize | The size in bits of a pointer for the platform on which the application is compiled (32 or 64). |