I'm trying to make a calculator using QJSEngine and I need functions like sqrt, pow, ln, sin etc. In QScript you could define custom functions with a few simple lines of code, but I have no idea how I can achieve this in QJSEngine.
What I have tried:
I've created a js script with all the functions I need in hope of connecting it to the engine, but I'm not sure if it's possible, or (if it is) how can I do it.