QML BatteryInfo ElementThe BatteryInfo element allows you to receive battery change notifications from the device. More... Properties
Signals
Detailed DescriptionThis element is part of the QtMobility.systeminfo 1.2 module. It is a convience class to make QML usage easier. Note: To use notification signals, you need to set the monitor* properties to true. BatteryInfo { id: batinfo monitorChargerTypeChanges: true monitorChargingStateChanges: true } See also QSystemBatteryInfo. Property DocumentationReturns the battery charge status. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the currently used charger type. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the charging state. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the amount of current flowing out from the battery (a short term averge), milliapmeres (mA). Positive current means discharging and negative current means charging. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the QSystemBatteryInfo::EnergyUnit that the system uses. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the Maximum number of bars the system uses. In the case that the system has no default number of battery bars, 0 is returned. This documentation was introduced in Qt Mobility Mobility 1.2. Start the connection for the batteryStatusChanged signal. This documentation was introduced in Qt Mobility Mobility 1.2. Start the connection for the chargerTypeChanged signal. This documentation was introduced in Qt Mobility Mobility 1.2. Start the connection for the chargingStateChanged signal. This documentation was introduced in Qt Mobility Mobility 1.2. Start the connection for the currentFlowChanged signal. This documentation was introduced in Qt Mobility Mobility 1.2. Start the connection for the nominalCapacityChanged signal. This documentation was introduced in Qt Mobility Mobility 1.2. Start the connection for the remainingCapacityBarsChanged signal. This documentation was introduced in Qt Mobility Mobility 1.2. Start the connection for the remainingCapacityChanged signal. This documentation was introduced in Qt Mobility Mobility 1.2. Start the connection for the remainingCapacityPercentChanged signal. This documentation was introduced in Qt Mobility Mobility 1.2. Start the connection for the remainingChargingTimeChanged signal. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the nominal (maximum) capacity of the battery, in milliampere-hours (mAh). If no battery is found, -1. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the remaining battery level of the battery in BatteryInfo::EnergyUnit. This documentation was introduced in Qt Mobility Mobility 1.2. See also QSystemBatteryInfo::EnergyUnit. Returns the remaining capacity in number of bars. The bar count will not necessarily always reflect one to one on the remaining capacity percentage. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the remaining battery level of the battery in percent. If no battery is found, -1. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the remaining time of charging in seconds if charging, 0 if battery is full and not charging, or -1 no battery found. This documentation was introduced in Qt Mobility Mobility 1.2. Returns the voltage of the battery, in millivolts (mV). If no battery is found, -1. This documentation was introduced in Qt Mobility Mobility 1.2. Signal DocumentationThis signal is emitted when battery status has changed. This documentation was introduced in Qt Mobility Mobility 1.2. See also QSystemBatteryInfo::ChargingState. This signal is emitted when the charger type has changed, such as when a phone gets plugged in to the wall, or usb. This documentation was introduced in Qt Mobility Mobility 1.2. See also QSystemBatteryInfo::ChargerType. This signal is emitted when charging state has changed. This documentation was introduced in Qt Mobility Mobility 1.2. See also QSystemBatteryInfo::ChargingState. This signal is emitted when the short term averge battery current has changed, or on some systems at regular intervals. On some systems where this can lead to a CPU intensive process, you should disconnect from this signal when you are finished. This documentation was introduced in Qt Mobility Mobility 1.2. See also QSystemBatteryInfo::currentFlow. This signal is emitted when nominal (maximum) battery level has changed. This documentation was introduced in Qt Mobility Mobility 1.2. See also QSystemBatteryInfo::nominalCapacity. This signal is emitted when battery level has changed. This documentation was introduced in Qt Mobility Mobility 1.2. This signal is emitted when battery capacity has changed, reported in QSystemBatteryInfo::EnergyUnit. This documentation was introduced in Qt Mobility Mobility 1.2. See also QSystemBatteryInfo::remainingCapacity. This signal is emitted when battery capacity in percent has changed. This documentation was introduced in Qt Mobility Mobility 1.2. This signal is emitted when remianing charge time has changed. This documentation was introduced in Qt Mobility Mobility 1.2. |
Publicité
Best OfActualités les plus luesSemaine
Mois
Année
![]()
![]() Le Qt Developer Network au hasard![]() Combiner licence, à propos et fermer d'une autre manièreLe Qt Developer Network est un réseau de développeurs Qt anglophone, où ils peuvent partager leur expérience sur le framework. 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