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

QString QScriptValue::toString (  )  const

Returns the string value of this QScriptValue, as defined in {ECMA-262} section 9.8, "ToString".

Note that if this QScriptValue is an object, calling this function has side effects on the script engine, since the engine will call the object's toString() function (and possibly valueOf()) in an attempt to convert the object to a primitive value (possibly resulting in an uncaught script exception).

See also:

Definition at line 534 of file qscriptvalue.cpp.

    return QScriptValuePrivate::valueOf(*this).toString();

Generated by  Doxygen 1.6.0   Back to index