Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Application Exit issue
RuiSilva last edited by
I'm integrating QtWebEngine in my application but I'm having an issue related with application exit.
I've noticed that problem during some application tests, where I have to close the application after loading the web page.
After some investigation I found that, after loading the js library, if wait some time before exiting the application, the application takes less time to exit. So ... I concluded that after loading the library I have to "wait" (75sec) to exit:
- If I try to quit the application after loading the library - the application takes 75 sec + 5 seconds (the time exit was taking before the integration) to exit
- If I try to quit the application N seconds (N < 75) after loading the js library - the application takes (75 seconds - N seconds) + 5 seconds (the time exit was taking before the integration) to exit
- If I try to quit the application N seconds (N >= 75) after loading the js library - 5 seconds (the time exit was taking before the integration) to exit
How can I reduce that time?
What's causing that time difference? Is it related with qAddPostRoutine(deleteShareContext); ?