IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

SystemInformation QML Type

Provides information about the system.

This type was introduced in Qt 6.4.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

SystemInformation QML Type

  • Import Statement: import QtCore 6.4

  • 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:

 
Sélectionnez
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

See also QSysInfo

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+