I'm working on a Qt application and would like to monitor the battery status (charging, percentage etc). There are files like status, uevent in /sys/class/power_supply/battery directory which have all the information I need. These files are getting updated on connecting / disconnecting the charger. I tried using QFileSystemWatcher class which didn't work as those files' timestamps are not changing with their content. Any other way of monitoring the battery status?
I could use a timer / separate thread to do this but would like to explore other options available through the OS (Debian on Arm). 
