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 <[email protected]>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 > [email protected] > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
