Qt c++: how to check battery level (Laptop)
-
Better start looking for a WinAPI or other OS options. It's not really C++ issue to handle battery levels.
good luck finding! -
For Windows check out GetSystemPowerStatus function of the WinAPI.
-
Both Qt-Mobilty and Qt5 has API:
http://doc.qt.nokia.com/qtmobility/qsystembatteryinfo.html
http://qt-project.org/doc/qt-5.0/qbatteryinfo.html
I have no idea which platforms are supported.