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

WASM: unable to set moduleConfig

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 6.3.1, 6.4.0 Beta1
    • QPA
    • WebAssembly

    Description

      When building for the webassembly target, you may want to configure the emscripten module (https://emscripten.org/docs/api_reference/module.html) by setting cli arguments, or override the default behaviour of print/printErr.

      The QtLoader class encapsulates moduleConfig in a way that doesn't allow me to provide these without patching.

      Additionally I'm missing a signal that tells me that the module is ready to be used on the JS side. In earlier versions there was a global Module object which was already initialized and usable when showCanvas was triggered. That isn't the case now, and there's no alternative way.

      Attachments

        Issue Links

          Activity

            People

              sorvig Morten Sørvig
              cajus Cajus Pollmeier
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: