Set up WebAssembly development environment

To set up the development environment for WebAssembly:

  1. Go to Preferences > SDKs > WebAssembly.
  2. In Emscripten SDK path, enter the root directory where you installed emsdk.
  3. Qt Creator configures the Emscripten SDK environment for you if your Qt for WebAssembly version supports the emsdk.

    WebAssembly tab in SDKs preferences

  4. Go to Preferences > Kits to check the WebAssembly kit that Qt Creator creates. If C/C++ does not show the Emscripten Compiler to use, check that emscripten is set up correctly.

    WebAssembly kit in the Kits tab in Kits preferences

See also Building applications for the Web, How to: Develop for WebAssembly, and Enable and disable plugins.