You are right, in this case it does not make sense since you can already distribute the Qt compiled version.
Re:Qt for WebAssembly Technology Preview
by littlestymaar on Tuesday April 24, 2018 @01:44PM
(#16914780)
And even if you want to ship native code within your Electron app, why would you use wasm instead of the native code with ffi ?
This would of course have to be tested but there might be less overhead? I haven’t used FFI but they mention that it is significant. I have written a V8 add-on using NAN and the performance is very good (as in passing relatively large arrays between C++ and Node is in the few microsecond range)
Electron is great if you don't want to write native code (and deal with the debugging complexity of C or C++). If you already have a cross-plateform native app in written with Qt, why the hell would you want to put that in Electron?! And remind that if your C++ isn't cross-plateform already, you won't be able to build to wasm.