BatteryInfoThe BatteryInfo element provides various information about the battery status. More... Inherits QtObject Properties
Signals
Methods
Detailed DescriptionProperty DocumentationThis property holds the number of batteries available, or -1 on error or the information is not available. This property holds the type of the charger. Possible values are:
This property holds the energy unit used. Possible values are:
This property holds whether or not monitor the change of battery counts. See also batteryCount. This property holds whether or not monitor the change of battery's status. See also onBatteryStatusChanged. This property holds whether or not monitor the change of charger type. See also chargerType. This property holds whether or not monitor the change of charging state. See also onChargingStateChanged. This property holds whether or not monitor the flow of batteries. See also onCurrentFlowChanged. This property holds whether or not monitor the remaining capacity of batteries. See also onRemainingCapacityChanged. This property holds whether or not monitor the remaining charging time of batteries. See also onRemainingChargingTimeChanged. This property holds whether or not monitor the voltage of batteries. See also onVoltageChanged. Signal DocumentationThis handler is called when status of battery has changed to status. Note that it won't be called unless monitorBatteryStatus is set true. See also batteryStatus and monitorBatteryStatus. This handler is called when charging state of battery has changed to state. Note that it won't be called unless monitorChargingState is set true. See also chargingState and monitorChargingState. This handler is called when current flow of battery has changed to flow. Note that it won't be called unless monitorCurrentFlow is set true. See also currentFlow and monitorCurrentFlow. This handler is called when remaining capacity of battery has changed to capacity. Note that it won't be called unless monitorRemainingCapacity is set true. See also remainingCapacity and monitorRemainingCapacity. This handler is called when remaining charging time of battery has changed to seconds. Note that it won't be called unless monitorRemainingChargingTime is set true. See also remainingChargingTime and monitorRemainingChargingTime. This handler is called when voltage of battery has changed to voltage. Note that it won't be called unless monitorVoltage is set true. See also voltage and monitorVoltage. Method DocumentationReturns the status of the given battery. Possible values are:
See also onBatteryStatusChanged. Returns the charging state of the given battery. Possible values are:
See also onChargingStateChanged. Returns the current flow of the battery. See also onCurrentFlowChanged. Returns the remaining capacity of the battery. See also onRemainingCapacityChanged. Returns the remaining charging time of the battery. See also onRemainingChargingTimeChanged. Returns the voltage of the battery. See also onVoltageChanged. |