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.
QScriptValue | qScriptValueFromQMetaObject ( QScriptEngine * engine ) |
T | qScriptValueToValue ( const QScriptValue & value ) |
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().
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().