WebAssembly is a bytecode representation that is meant to be targeted by high-level programming languages such as C++ and to be executed inside a virtual machine in a browser. From Qt's perspective, WebAssembly is just another target platform. Starting with Qt 6.4, it is an officially supported target platform for selected, relevant modules. You can download the binary builds on Linux, macOS and Windows host platforms and build your Qt applications to be run inside a web browser. Below are some examples and demos that we have prepared to show Qt running in a browser. More examples will be added here later.
WebAssembly support in browsers is evolving rapidly. We currently recommend using Chrome or Firefox for the best possible experience.
Please note, we are currently experiencing technical difficulties that are causing the following demos to not run correctly in certain browsers.
Qt Quick Controls 2 Gallery - Example of different component types in Qt Quick Controls 2.
QML Chart - Basic example of different chart types in QML API of Qt Charts.
Chart Themes - Demonstrates the look and feel of different built-in Qt Charts themes.
Sensor Tag Demo - "Internet of things" demo which visualizes sensor data from a Texas Instruments SensorTag device, transmitted over web sockets. Can also be run with mock up data. Note that since this has been designed to work with a minimum screen size in mind, it may not look good on small screens or with smaller windows.
For more information about Qt support for WebAssembly, please visit the documentation.