Qt for WebAssembly is treated by Qt as a cross platform build. It is an emerging technology and, as such, some features required may need special settings configuration to be changed or enabled. There are a few things you need to keep in mind when using it as a target.
Here, I run through some tips regarding Qt for WebAssembly.
All major browsers now have support for loading WebAssembly. Firefox seems to load fastest, although Chrome has a configuration that can be set to speed it up (look at chrome://flags for #enable-webassembly-baseline
). Mobile browsers that come with Android and iOS also work, although these may run into out of memory errors, depending on the application being run.
Qt 5.13 for WebAssembly has added experimental support for threads, which rely onSharedArrayBuffer
support in the browsers. This has been turned off by default, due to Spectre vulnerabilities, and need to be enabled in the browsers.
In Chrome, navigate to chrome://flags
and...