System InformationNamespaceThe QtMobility APIs are placed into the QtMobility namespace. This is done to facilitate the future migration of QtMobility APIs into Qt. See the Quickstart guide for an example on how the namespace impacts on application development.
System InformationThe System Information API provides a set of APIs to discover system related information and capabilities. OverviewThe System Information API returns the system information related to a number of categories. Information CategoriesVersionContains version information for a range of supporting software on the device. For example, from the Operating System and Firmware to the version of WebKit, Qt and the Service Framework. Features (hardware)This lists the supported hardware on the device. Features include items such as the camera, bluetooth, GPS, FM radio etc. NetworkThe state of the network connection, and also the type of network e.g. gsm, cdma, ethernet etc. Display InformationThis provides height, width, contrast, and other information of the display. Storage InformationThe presence of various storage devices. Including: none, internal, removable, cdrom. Device Information
ScreensaverThis provides the access to the information of the screen saver. Building and compilingTo build the library, run configure and make. Linux supports a NetworkManager based backend and generic backend using QNetworkInterface only. By default the generic backend is selected. If the NetworkManager backend is required run qmake as follows: qmake BACKEND=NetworkManager
The backend selection is expected to disappear once the API is integrated into Qt. Main Classes
QML ElementsThe Qt SystemInfo offers access to system information through declarative UI by providing systeminfo elements. Detailed information can be found at QML SystemInfo QML Plugin.
ExamplesSystem Information ExampleThe System Information example demonstrates how an application can very easily access the system information of the device. System Information QML ExampleThe System Info QML example demonstrates how an application can very easily access the system information of the device. |
Publicité
Best OfActualités les plus luesSemaine
Mois
Année
![]()
![]() Le blog Digia au hasard![]() Déploiement d'applications Qt Commercial sur les tablettes Windows 8Le blog Digia est l'endroit privilégié pour la communication sur l'édition commerciale de Qt, où des réponses publiques sont apportées aux questions les plus posées au support. Lire l'article.
CommunautéRessources
Liens utilesContact
Qt dans le magazine |
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.2 | |
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