How to read battery level on Qt 5.4.1?
i am trying without success to find out how to read the battery level on Qt 5.4.1 (es: android or laptop).
the so called QBatteryInfo class is nowhere to be found, and of course QtMobility is also gone, so what should i do? Either QML or C++ solution is ok for me!
The QtSystems module is what you are looking for. It contains QBatteryInfo
For android here a specific solution mixed java and C++ code: