Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-121765

WebAssembly qtloader.js onExit is never called

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.1
    • Core: Event loop
    • None
    • WebAssembly

    Description

      In Qt 6.6.1, the qtloader docs (https://doc.qt.io/qt-6/wasm.html#using-qtloader) include specific mention of "onExit    Callback for when the applicataion exits".  However, this callback is never invoked (see https://bugreports.qt.io/browse/QTBUG-107998 which has been closed as WONTFIX).

      The documentation should be updated to remove this hook, and to clearly state that a Qt application can never be cleanly exited by the user (using e.g. QCoreApplication::quit() or similar).  Certainly, I have found no way which allows the user-provided onExit hook to be invoked (perhaps I could invoke it directly using emscripten::val::call but the Qt docs include no example of such that I could find).

      Attachments

        1. CMakeLists.txt
          1 kB
        2. main.cpp
          0.4 kB
        3. Main.qml
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            chrisadams Christopher Adams
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes