[Interest] Qt signal when system is awakened

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Wed Jul 24 08:05:44 CEST 2013


I'm not aware of any such signal coming to Qt from the OS.

Does the session ID have an expiry time? If you can detect such a (expiry)
timeout, maybe you can initiate a re-fetch automatically (using timers)?

-mandeep


On Wed, Jul 24, 2013 at 10:46 AM, Tony Rietwyk <tony at rightsoft.com.au>wrote:

> Hi Everybody,
>
> My application connects to cloud servers and obtains a session id used in
> subsequent interactions.  Some clients are using the app on laptops.   They
> rarely shutdown their system, and just close the lid, which puts the OS
> (Windows or OSX) to sleep.   Hours or days later, they open the lid and see
> my app still running.  They perform some actions, then get an error when
> the
> app tries to continue the session with the cloud server.   I have
> temporarily increased the timeouts in the cloud service, but that is not
> very satisfactory.
>
> Is there a Qt signal when the system state changes to or from sleep or
> hibernate?
>
> How have others handled this situation?
>
> Thanks!
>
> Tony
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130724/f2628c22/attachment.html>


More information about the Interest mailing list