How to Properly Exit a Qt WebAssembly Application?
Unsolved
Qt for WebAssembly
-
Hello everyone,
I’m working on a Qt WebAssembly application and struggling to properly exit it. Our goal is to have an HTML login page that loads the WebAssembly app after a successful login (this already works with the help of qtloader.js). If the user decides to log out from the app, it should quit the application and return to the login page.
I’ve tried everything mentioned in the official documentation (Qt WebAssembly Docs), including:
- Setting EXIT_RUNTIME=1
- Calling QApplication::quit();
- Using the onExit callback in qtloader.js
However, nothing seems to work as expected. Has anyone managed to successfully exit a Qt WebAssembly application and return to an external HTML page? Any suggestions or best practices would be greatly appreciated!
Edit: Please also note that I am using ASYNCIFY
Thanks in advance!