QSystemInfo Class ReferenceThe QSystemInfo class provides access to various general information from the system. More... #include <QSystemInfo> Inherits QObject. Public Types
Properties
Public Functions
Signals
Static Public Members
Additional Inherited Members
Detailed DescriptionThe QSystemInfo class provides access to various general information from the system. In the future, parts of the QtSystemInfo API may be moved and renamed into an existing Qt class that provides similiar functionality.
Platform notes Some functionality may or may not be supported on various platforms. Depending on if there is a reliable way to gather such information. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QSystemInfo::BluetoothFeature | 0 | Bluetooth feature available. |
QSystemInfo::CameraFeature | 1 | Camera feature available. |
QSystemInfo::FmradioFeature | 2 | FM Radio feature available. |
QSystemInfo::IrFeature | 3 | Infrared feature available. |
QSystemInfo::LedFeature | 4 | LED's feature available. |
QSystemInfo::MemcardFeature | 5 | Memory card feature available. |
QSystemInfo::UsbFeature | 6 | Universal System Bus (USB) feature available. |
QSystemInfo::VibFeature | 7 | Vibration feature available. |
QSystemInfo::WlanFeature | 8 | Wireless Local Area Network (WLAN) feature available. |
QSystemInfo::SimFeature | 9 | Subscriber Identity Module (SIM) available. |
QSystemInfo::LocationFeature | 10 | Global Positioning System (GPS) and/or other location feature available. |
QSystemInfo::VideoOutFeature | 11 | Video out feature available. |
QSystemInfo::HapticsFeature | 12 | Haptics feature available. |
This enum describes the version component.
Constant | Value | Description |
---|---|---|
QSystemInfo::Os | 1 | Operating system version / platform ID. |
QSystemInfo::QtCore | 2 | Qt libs version. |
QSystemInfo::Firmware | 3 | Version of (flashable) system as a whole. |
This property holds list of available languages.
Returns a QStringList of available Qt language translations in 2 letter ISO 639-1 format. If the Qt translations cannot be found, returns the current system language.
Access functions:
QStringList | availableLanguages () |
This property holds the current locale country code.
Returns the 2 letter ISO 3166-1 for the current country code.
Access functions:
QString | currentCountryCode () |
This property holds the current Language Returns the current language in 2 letter ISO 639-1 format.
Access functions:
QString | currentLanguage () |
Constructs a QSystemInfo object with the given parent.
Destroys the QSystemInfo object
This signal is emitted whenever the current language changes, specified by lang, which is in 2 letter, ISO 639-1 specification form.
Returns true if the QSystemInfo::Feature feature is supported, otherwise false.
Returns the version of QSystemInfo::Version type, with optional platform dependent parameter as a string.
Version will be returned in "major.minor.build" form.
In case a particular version does not use the "build" part, it is set to 0. If a particular element is not available at all, an error "Not Installed" will be returned by the API.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtmobility-1.0-tp | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com