Re: [SailfishDevel] Closing an application without killing the main loop

2013-12-12 Thread Ville Ranki
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-12-12 15:29, Mikko Harju wrote: > On 11.12.2013 22:51, Ville Ranki wrote: > >> I have not found a way to do it in Sailfish. When user closes >> the application, Sailfish terminates the Qt main loop which >> effectively makes it impossible to d

Re: [SailfishDevel] Closing an application without killing the main loop

2013-12-12 Thread Mikko Harju
On 11.12.2013 22:51, Ville Ranki wrote: > I have not found a way to do it in Sailfish. When user closes the > application, Sailfish terminates the Qt main loop which effectively > makes it impossible to do any asynchronous tasks. Have you ran it on the actual device? It might be that the fix did

Re: [SailfishDevel] Closing an application without killing the main loop

2013-12-12 Thread Lucien XU
Hello, I don't know what's the best way to do it, but here are some ideas. 1. Use aboutToQuit and block it with a QEventLoop ? It might not be enough and might leave the application cover open on the multitask grid, making it look not responding. 2. Launch a script / program when quitting

[SailfishDevel] Closing an application without killing the main loop

2013-12-11 Thread Ville Ranki
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm the author of Siilihai web forum reader and i'm currently porting it to Sailfish. Siilihai needs to synchronize it's status (read messages etc) to a remote server when user quits it. I have not found a way to do it