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

qtloader.js update

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • Other
    • None
    • WebAssembly

    Description

      Updating qtloader.js

      qtloader.js is currently written in old-style JS, with a feature set which has evolved over time. We want to modernize and and evaluate which features it should have.

      See QTBUG-74295 for background. This bug tracks the current implementation project.

      To be evaluated:

      • Structure
        • Should the main API be a JS class (yes)
        • Should it be a JS module?
        • Should a QtLoader object control one wasm instance, or should it be possible to call load() multiple times and get multiple instances?
        • Should the main html file include the emscripten runtime, or should qtloader eval() it?
      • Features
        • splash screen support
        • status change events: which type of events do we need, when are they changing?
        • ability to capture output
        • restarton-crash capability
        • support for multiple instances / external module compilation
        • platform capabilities test (webgl, wasm support)
        • support for setting environment variables / command line arguments
        • support for auto-test / batched tests use cases
      • Misc
        • Change the “createQtAppInstance()” export name to include the app name. This allows using multiple applications on one page.
        • Simplify loading text “Downloading/Compiling” -> “Loading”

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.webassembly qt.webassembly
              sorvig Morten Sørvig
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes