W3cubDocs

/Qt 6.9

SystemInformation QML Type

Provides information about the system. More...

Import Statement: import QtCore
Since: Qt 6.4
Inherits:

QtObject

Detailed Description

The SystemInformation singleton type provides information about the system, using a similar API to QSysInfo, where each function in QSysInfo is available as a property:

if (SystemInformation.wordSize === 64) {
    console.log("64 bit")
} else {
    console.log("32 bit")
}

if (SystemInformation.byteOrder === SystemInformation.Little) {
    console.log("Little endian")
} else {
    console.log("Big endian")
}

console.log("Currently running on " + SystemInformation.prettyProductName)

See also QSysInfo.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.9/qml-qtcore-systeminformation.html