ScriptEngine Class
(QInstaller::ScriptEngine)The ScriptEngine class is used to prepare and run the component scripts. More...
| Header: | #include <ScriptEngine> |
Public Functions
| ScriptEngine(QInstaller::PackageManagerCore *core = 0) | |
| void | addToGlobalObject(QObject *object) |
| QJSValue | callScriptMethod(const QJSValue &context, const QString &methodName, const QJSValueList &arguments = QJSValueList()) |
| QJSValue | evaluate(const QString &program, const QString &fileName = QString(), int lineNumber = 1) |
| QJSValue | globalObject() const |
| QJSValue | loadInContext(const QString &context, const QString &fileName, const QString &scriptInjection = QString()) |
| QJSValue | newArray(uint length = 0) |
| QJSValue | newQObject(QObject *object, bool qtScriptCompat = true) |
| void | removeFromGlobalObject(QObject *object) |
Static Public Members
| const QMetaObject | staticMetaObject |
Detailed Description
The ScriptEngine class is used to prepare and run the component scripts.
Member Function Documentation
ScriptEngine::ScriptEngine(QInstaller::PackageManagerCore *core = 0)
Default constructs an instance of ScriptEngine.