hi all i want to close my application automatically, when the system time reaches the user given time.
any ideas???
Thank you all in advance
hi all i want to close my application automatically, when the system time reaches the user given time.
any ideas???
Thank you all in advance
CHANGE is the only constant thing in this world.
Create a QTimer object that emits a timeout() signal every few seconds.
Connect the signal to a slot that checks if the required time has elapsed and, if it has, call this->close()
Why not just compute the time to the given time and set that for the timer interval?
If the user time changes you simply reset the timer. You probably need to be able to cancel it anyway, if some user activity interrupts things.
Polling is evil on a phone (or on any device, actually).
Any tool can be abused.
Thank buddy.... i got it
CHANGE is the only constant thing in this world.