Qt Reference Documentation

Qt 3 Support Members for QScriptEngine

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. 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().