Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. How to Properly Exit a Qt WebAssembly Application?

How to Properly Exit a Qt WebAssembly Application?

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
1 Posts 1 Posters 112 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    romain.donze
    wrote on 4 Feb 2025, 12:32 last edited by romain.donze 2 Apr 2025, 13:01
    #1

    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!

    1 Reply Last reply
    0

    1/1

    4 Feb 2025, 12:32

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved