I have a Qt project with a Webview which is loading a HTML file which is Javascriptfiles. Now I want to call a function on Qt side via JavaScript.
So, having the following Qt function:
void MainWIndow::myFunction(angle)
{
qDebug() << angle;
}
I want to call it from JavaScript side:
function angleChanged(angle){
Qt.MainWIndow::myFunction(angle);
}
How can I do this?