Compatibility Members for QScriptEngine

The following members of class QScriptEngineare part of the Qt compatibility layer. We advise against using them in new code.

Related Non-Members

QScriptValue qScriptValueFromQMetaObject(QScriptEngine * engine)
T qScriptValueToValue(const QScriptValue & value)

Related Non-Members

QScriptValue qScriptValueFromQMetaObject(QScriptEngine * engine)

Uses engine to create a QScriptValue that represents the Qt class T.

This function is equivalent to QScriptEngine::scriptValueFromQMetaObject().

Note: This function was provided as a workaround for MSVC 6 which did not support member template functions. It is advised to use the other form in new code.

This function was introduced in Qt 4.3.

See also QScriptEngine::newQMetaObject().

T qScriptValueToValue(const QScriptValue & value)

Returns the given value converted to the template type T.

This function is equivalent to QScriptEngine::fromScriptValue().

Note: This function was provided as a workaround for MSVC 6 which did not support member template functions. It is advised to use the other form in new code.

This function was introduced in Qt 4.3.

See also QScriptEngine::fromScriptValue().