It is open source. You will need the emscripten compiler.
https://wiki.qt.io/Qt_for_WebAssembly
It is possible to use cmake, it is a bit of a pain to set this up though.
That is a completely different thing. broadwayd is only a display server. Qt for WebAssembly runs in the browser in the same secure javascript sandbox.