Qt runJavaScript multiple parameters
-
wrote on 8 Oct 2019, 20:24 last edited by
Hi, I'm new here and with QT development
I'm trying to call a javascript function from C++ and I'm able to pass a parameter as the example below, but I loke to change it to many parameters, is it possible? How can I do it. Thanks
//QT function calling Js
webview->page()->runJavaScript("changeHtmlText('Text has been replaced by C++!');");//Js Function
function changeHtmlText(newText)
{ $("#infotext").html(newText); }This is and "one" parameter function, I'd like to change it to many parameters
-
Hi, I'm new here and with QT development
I'm trying to call a javascript function from C++ and I'm able to pass a parameter as the example below, but I loke to change it to many parameters, is it possible? How can I do it. Thanks
//QT function calling Js
webview->page()->runJavaScript("changeHtmlText('Text has been replaced by C++!');");//Js Function
function changeHtmlText(newText)
{ $("#infotext").html(newText); }This is and "one" parameter function, I'd like to change it to many parameters
1/2