qt5base-lts/tests/manual/wasm/qstdweb
Mikolaj Boc b9491daad0 Modernize the qtloader
This is a minimal version of qtloader. The load function accepts
the same arguments as emscripten runtime with a few additions:
- qt.environment
- qt.onExit
- qt.containerElements
- qt.fontDpi
- qt.onLoaded
- qt.entryFunction

State handling has been removed in favor of making the load async
(assume loading when the promise is live).

Public APIs getting crashed status, exit text and code have been
refactored into the new qt.onExit event fed to load. No need for
keeping the state in the loader.

The loader is integration-tested. A test module with test APIs
has been created as a test harness.

The runtime APIs exposed by Qt (font dpi and screen API) are handled
by the qtloader seamlessly.

Change-Id: Iaee65702667da0349a475feae6b83244d966d98d
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2023-06-05 23:14:28 +02:00
..
CMakeLists.txt Replace PUBLIC_LIBRARIES with LIBRARIES in qt_internal_add_manual_test 2023-04-13 20:16:08 +02:00
files_auto.html Use the local file APIs to save/load files on WASM 2022-08-12 20:32:29 +02:00
files_main.cpp Fix the files_main test 2023-02-23 14:16:06 +01:00
promise_auto.html Port promise tests to qtwasmtestlib 2022-07-06 17:56:57 +02:00
promise_main.cpp Make the promises js-less using a newly introduced thunk pool 2022-07-07 06:28:13 +02:00
qwasmcompositor_auto.html Fix the workaround in ~QWasmOpenGLContext 2022-10-21 18:02:34 +02:00
qwasmcompositor_main.cpp Modernize the qtloader 2023-06-05 23:14:28 +02:00