Interacting QML and the browser via javascript client and vice versa?
-
Hi ,
I',m thinking if this is possible on the QT WebAssembly ?I want to invoke Javascript client script of the browser from QML or c++ , is this possible ?
for example
I have "sample.js" and the content of it is
function doSampleAlert(){
alert("hello world");
}then i will add it on the script tag of the .html generated file
<script src="sample.js"></script>
then on the QML i want to call that doSampleAlert() method from the javascript client
via Component.onCompleted: doSampleAlert();
and also javascript client can do the same , i want to call a method from the c++ or a function from the QML from the browser,
is this possible ? thanks