How to handle set reset event using qt ?
-
i want to trigger charger connect and disconnect event. this event is random so i don't know how to handle it using qt.
i f you know then please let me know.
-
i have written below code to handle this connect and disconnect event of charger.
unsigned int uCount1,uCount2;
uCount1=0;
uCount2=0;if(bCharging &&(!bDischarging))
{
bCharging = false;
uCount2=0;
if(uCount1==0)
DisplayTime(min);
uCount1=1;
}
else if(bDischarging &&(!bCharging))
{
uCount1=0;
bCharging = false;
if(uCount2==0)
DisplayTime(min);
uCount2=1;
} -
Hi,
How are these event generated ?
Where do they come from ?
On which target ? -
i have written below code to handle this connect and disconnect event of charger.
unsigned int uCount1,uCount2;
uCount1=0;
uCount2=0;if(bCharging &&(!bDischarging))
{
bCharging = false;
uCount2=0;
if(uCount1==0)
DisplayTime(min);
uCount1=1;
}
else if(bDischarging &&(!bCharging))
{
uCount1=0;
bCharging = false;
if(uCount2==0)
DisplayTime(min);
uCount2=1;
}