Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to read battery level on Qt 5.4.1?
gardiol last edited by
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
deleted57 last edited by
For android here a specific solution mixed java and C++ code: