QSysInfo Class
The QSysInfo class provides information about the system. More...
| Header: | #include <QSysInfo> |
| qmake: | QT += core |
Public Types
Detailed Description
- WordSize specifies the size of a pointer for the platform on which the application is compiled.
- ByteOrder specifies whether the platform is big-endian or little-endian.
Some constants are defined only on certain platforms. You can use the preprocessor symbols Q_OS_WIN and Q_OS_MACOS to test that the application is compiled under Windows or macOS.
See also QLibraryInfo.
Member Type Documentation
enum QSysInfo::Endian
| Constant | Value | Description |
|---|---|---|
QSysInfo::BigEndian | 0 | Big-endian byte order (also called Network byte order) |
QSysInfo::LittleEndian | 1 | Little-endian byte order |
QSysInfo::ByteOrder | BigEndian or LittleEndian | Equals BigEndian or LittleEndian, depending on the platform's byte order. |
enum QSysInfo::Sizes
This enum provides platform-specific information about the sizes of data structures used by the underlying architecture.
| Constant | Value | Description |
|---|---|---|
QSysInfo::WordSize | (sizeof(void *)<<3) | The size in bits of a pointer for the platform on which the application is compiled (32 or 64). |