PDA

View Full Version : Math functions in QScriptEngine



mythili
24th February 2014, 09:23
Hi...
How to calculate other operations like sqrt,power,trignometric functions other than +, - ,*, / using QScriptEngine.

Thanks
Mythili

anda_skoa
24th February 2014, 12:41
http://qt-project.org/doc/qt-5.0/qtscript/ecmascript.html#the-math-object

Cheers,
_

wysota
25th February 2014, 10:37
If Math is missing some function, you can always export your own functions written in C++ to the scripting environment.