Question over Qt / Web Assembly / Csharp (WebAssembly) interop
-
Hi,
Currently for CSharp the closest lib in the way of bindings is QML.Net https://github.com/qmlnet/qmlnet
However it only seems to be supported by one developer and he doesn't seem to have time to work on it anymore
https://github.com/qmlnet/qmlnet/issues/240So I was wondering if there was some other way of binding CSharp code to the Qt library.
It's now possible with .Net 6 to build csharp code into webassembly
They also have a new method of hosting web content into a Desktop / mobile web app called "Blazor Web View" and MAUI (similar to Electron). For linux there's also the option of ChromelyIt's also possible to compile Qt5/6 into webassembly
Although from what I can gather the main target is to have the application logic written as C++ and bundled with the Qt lib
when the webassembly module is generated.So my question is; would there be any way in theory of one talking to the other?
.Net6 webassem does have JS interop
But I'm not sure if there's any form of API on the Qt side when it's built into webassembly for handling everything Qt related from Javascript (instead of using a C++ Project)I think the current API is via qtloader.js
Although I have a feeling that at the moment there's no API for using Qt as a library from external webassembly / JS / Typescript
https://bugreports.qt.io/browse/QTBUG-74295
is this true?