Qt c++: how to check battery level (Laptop)
How to get to know the battery level of a laptop in C++?
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:
I have no idea which platforms are supported.