Answer the question
In order to leave comments, you need to log in
How to replace QtScript in Qt5?
The program used the user function values at some point for further calculations. QScript was used for this:
double function(double x, QString str)
{
QScriptEngine engine;
engine.globalObject().setProperty("x", x);
return engine.evaluate(str).toNumber();
}
QT += script
Project ERROR: Unknown module(s) in QT: script
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question