Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
Calling C++ function from JavaScript through Webassembly
-
I need to call a function in my Qt program (C++) from JavaScript but I don't know how Qt calls C++ functions from JS.
Using this does not work since Qt does not export ccall.
var result = Module.ccall( 'myFunction', // name of C function null, // return type null, // argument types null // arguments );
How can I do this?
-
You need to export those by adding linker arguments: