ScriptEngine Class | Qt Installer Framework Manual

- Qt Installer Framework Manual
- ScriptEngine

# ScriptEngine Class

(QInstaller::ScriptEngine)

The ScriptEngine class is used to prepare and run the component scripts. More...

Header: | #include <ScriptEngine>

- List of all members, including inherited members

## 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.

### void ScriptEngine::addToGlobalObject(QObject *object)

### QJSValue ScriptEngine::callScriptMethod(const QJSValue &context, const QString &methodName, const QJSValueList &arguments = QJSValueList())

### QJSValue ScriptEngine::evaluate(const QString &program, const QString &fileName = QString(), int lineNumber = 1)

### QJSValue ScriptEngine::globalObject() const

### QJSValue ScriptEngine::loadInContext(const QString &context, const QString &fileName, const QString &scriptInjection = QString())

### QJSValue ScriptEngine::newArray(uint length = 0)

### QJSValue ScriptEngine::newQObject(QObject *object, bool qtScriptCompat = true)

### void ScriptEngine::removeFromGlobalObject(QObject *object)