Hi,
Using QSystemDeviceInfo can not get battery level correctly.
QSystemDeviceInfo *dev_info;
dev_info = new QSystemDeviceInfo(this);
int battery=dev_info->batteryLevel();
QString qStr = QString::number(battery);
qDebug()<<"Battery Level"<< qStr;
using this code get initial batterylevel and even after batterylevel change and call above funtion it get the same reading.. but when application restart it correctly updated
i try this using signal but it also given the same result.
connect(deviceInfo, SIGNAL(batteryLevelChanged(int)),
this, SLOT(batterylevel(int)));
any solution?? how i get the correct battery level from the device
Thank you...



