Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QScriptValue QScriptEngine::newVariant ( const QVariant value  ) 

Creates a QtScript object holding the given variant value.

If a default prototype has been registered with the meta type id of value, then the prototype of the created object will be that prototype; otherwise, the prototype will be the Object prototype object.

See also:
setDefaultPrototype(), QScriptValue::toVariant()

Definition at line 415 of file qscriptengine.cpp.

{
    Q_D(QScriptEngine);
    return d->newVariant(value);
}


Generated by  Doxygen 1.6.0   Back to index