Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Question over Qt / Web Assembly / Csharp (WebAssembly) interop
Forum Updated to NodeBB v4.3 + New Features

Question over Qt / Web Assembly / Csharp (WebAssembly) interop

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
1 Posts 1 Posters 348 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    garlicbread
    wrote on last edited by
    #1

    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/240

    So 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 Chromely

    It'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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved