View Full Version : How to send an argument to Javascript function using QScriptEngine
mythili
27th February 2014, 06:45
How to send an argument to Javascript function using QScriptEngine
Please give me an example code
Thanks & Regards,
Mythili
anda_skoa
27th February 2014, 09:29
How to send an argument to Javascript function using QScriptEngine
Please give me an example code
You should probably do this first :)
What does your script look like, which function do you want to call, what kind of arguments you want to pass.
Cheers,
_
mythili
27th February 2014, 09:57
I have a mathematical equation like 1+3+qSin(90)*4 as a string
I need to call js by passing this as an argument to a function
Function in js need to evaluate and return a value again to qt.
Thanks,
Mythili
anda_skoa
27th February 2014, 12:41
Not bad for a second try :)
If you now also add the JavaScript snippet of the function that you want to call, at least its name, then people might be able to given you a code snippet back.
Unless you changed your mind and want an abstract answer for your abstract question.
Cheers,
_
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.