6int main(
int argc,
char *argv[])
The QJSEngine class provides an environment for evaluating JavaScript code.
QJSValue globalObject() const
Returns this engine's Global Object.
QJSValue evaluate(const QString &program, const QString &fileName=QString(), int lineNumber=1, QStringList *exceptionStackTrace=nullptr)
Evaluates program, using lineNumber as the base line number, and returns the result of the evaluation...
double toNumber() const
Returns the number value of this QJSValue, as defined in \l{ECMA-262} section 9.3,...
void setProperty(const QString &name, const QJSValue &value)
Sets the value of this QJSValue's property with the given name to the given value.
QApplication app(argc, argv)
[0]