
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQScriptValue class acts as a container for the Qt Script data types.More...
| Header: | #include <QScriptValue> |
| Since: | Qt 4.3 |
| enum | PropertyFlag { ReadOnly, Undeletable, SkipInEnumeration, PropertyGetter, PropertySetter, KeepExistingFlags } |
| flags | PropertyFlags |
| enum | ResolveFlag { ResolveLocal, ResolvePrototype } |
| flags | ResolveFlags |
| enum | SpecialValue { UndefinedValue, NullValue } |
| QScriptValue() | |
| QScriptValue(const QScriptValue & other) | |
| QScriptValue(SpecialValue value) | |
| QScriptValue(bool value) | |
| QScriptValue(int value) | |
| QScriptValue(uint value) | |
| QScriptValue(qsreal value) | |
| QScriptValue(const QString & value) | |
| QScriptValue(const QLatin1String & value) | |
| QScriptValue(const char * value) | |
| ~QScriptValue() | |
| QScriptValue | call(const QScriptValue & thisObject = QScriptValue(), const QScriptValueList & args = QScriptValueList()) |
| QScriptValue | call(const QScriptValue & thisObject, const QScriptValue & arguments) |
| QScriptValue | construct(const QScriptValueList & args = QScriptValueList()) |
| QScriptValue | construct(const QScriptValue & arguments) |
| QScriptValue | data() const |
| QScriptEngine * | engine() const |
| bool | equals(const QScriptValue & other) const |
| bool | instanceOf(const QScriptValue & other) const |
| bool | isArray() const |
| bool | isBool() const |
| bool | isDate() const |
| bool | isError() const |
| bool | isFunction() const |
| bool | isNull() const |
| bool | isNumber() const |
| bool | isObject() const |
| bool | isQMetaObject() const |
| bool | isQObject() const |
| bool | isRegExp() const |
| bool | isString() const |
| bool | isUndefined() const |
| bool | isValid() const |
| bool | isVariant() const |
| bool | lessThan(const QScriptValue & other) const |
| QScriptValue | property(const QString & name, const ResolveFlags & mode = ResolvePrototype) const |
| QScriptValue | property(const QScriptString & name, const ResolveFlags & mode = ResolvePrototype) const |
| QScriptValue | property(quint32 arrayIndex, const ResolveFlags & mode = ResolvePrototype) const |
| QScriptValue::PropertyFlags | propertyFlags(const QString & name, const ResolveFlags & mode = ResolvePrototype) const |
| QScriptValue::PropertyFlags | propertyFlags(const QScriptString & name, const ResolveFlags & mode = ResolvePrototype) const |
| QScriptValue | prototype() const |
| QScriptClass * | scriptClass() const |
| void | setData(const QScriptValue & data) |
| void | setProperty(const QString & name, const QScriptValue & value, const PropertyFlags & flags = KeepExistingFlags) |
| void | setProperty(const QScriptString & name, const QScriptValue & value, const PropertyFlags & flags = KeepExistingFlags) |
| void | setProperty(quint32 arrayIndex, const QScriptValue & value, const PropertyFlags & flags = KeepExistingFlags) |
| void | setPrototype(const QScriptValue & prototype) |
| void | setScriptClass(QScriptClass * scriptClass) |
| bool | strictlyEquals(const QScriptValue & other) const |
| bool | toBool() const |
| QDateTime | toDateTime() const |
| qint32 | toInt32() const |
| qsreal | toInteger() const |
| qsreal | toNumber() const |
| const QMetaObject * | toQMetaObject() const |
| QObject * | toQObject() const |
| QRegExp | toRegExp() const |
| QString | toString() const |
| quint16 | toUInt16() const |
| quint32 | toUInt32() const |
| QVariant | toVariant() const |
| QScriptValue & | operator=(const QScriptValue & other) |
| T | qscriptvalue_cast(const QScriptValue & value) |
TheQScriptValue class acts as a container for the Qt Script data types.
QScriptValue supports the types defined in theECMA-262 standard: The primitive types, which are Undefined, Null, Boolean, Number, and String; and the Object type. Additionally, Qt Script has built-in support forQVariant,QObject andQMetaObject.
For the object-based types (including Date and RegExp), use the newT() functions inQScriptEngine (e.g.QScriptEngine::newObject()) to create aQScriptValue of the desired type. For the primitive types, use one of theQScriptValue constructor overloads.
The methods named isT() (e.g.isBool(),isUndefined()) can be used to test if a value is of a certain type. The methods named toT() (e.g.toBool(),toString()) can be used to convert aQScriptValue to another type. You can also use the genericqscriptvalue_cast() function.
Object values have zero or more properties which are themselves QScriptValues. UsesetProperty() to set a property of an object, and callproperty() to retrieve the value of a property.
QScriptEngine myEngine;QScriptValue myObject= myEngine.newObject();QScriptValue myOtherObject= myEngine.newObject();myObject.setProperty("myChild", myOtherObject);myObject.setProperty("name","John Doe");
Each property can have a set of attributes; these are specified as the third (optional) argument tosetProperty(). The attributes of a property can be queried by calling thepropertyFlags() function. The following code snippet creates a property that cannot be modified by script code:
QScriptValue val(&myEngine,123);myObject.setProperty("myReadOnlyProperty", val,QScriptValue::ReadOnly);
If you want to iterate over the properties of a script object, use theQScriptValueIterator class.
Object values have an internalprototype property, which can be accessed withprototype() andsetPrototype(). Properties added to a prototype are shared by all objects having that prototype; this is referred to as prototype-based inheritance. In practice, it means that (by default) theproperty() function will automatically attempt to look up look the property in theprototype() (and in the prototype of theprototype(), and so on), if the object itself does not have the requested property. Note that this prototype-based lookup is not performed bysetProperty();setProperty() will always create the property in the script object itself. For more information, see theQtScript documentation.
Function objects (objects for whichisFunction() returns true) can be invoked by callingcall(). Constructor functions can be used to construct new objects by callingconstruct().
Useequals(),strictlyEquals() andlessThan() to compare aQScriptValue to another.
Object values can have custom data associated with them; see thesetData() anddata() functions. By default, this data is not accessible to scripts; it can be used to store any data you want to associate with the script object. Typically this is used by custom class objects (seeQScriptClass) to store a C++ type that contains the "native" object data.
Note that aQScriptValue for whichisObject() is true only carries a reference to an actual object; copying theQScriptValue will only copy the object reference, not the object itself. If you want to clone an object (i.e. copy an object's properties to another object), you can do so with the help of afor-in statement in script code, orQScriptValueIterator in C++.
See alsoQScriptEngine andQScriptValueIterator.
This enum describes the attributes of a property.
| Constant | Value | Description |
|---|---|---|
QScriptValue::ReadOnly | 0x00000001 | The property is read-only. Attempts by Qt Script code to write to the property will be ignored. |
QScriptValue::Undeletable | 0x00000002 | Attempts by Qt Script code todelete the property will be ignored. |
QScriptValue::SkipInEnumeration | 0x00000004 | The property is not to be enumerated by afor-in enumeration. |
QScriptValue::PropertyGetter | 0x00000008 | The property is defined by a function which will be called to get the property value. |
QScriptValue::PropertySetter | 0x00000010 | The property is defined by a function which will be called to set the property value. |
This flag is used to indicate that an existing property is aQObject member (a property or method).
| Constant | Value | Description |
|---|---|---|
QScriptValue::KeepExistingFlags | 0x00000800 | This value is used to indicate tosetProperty() that the property's flags should be left unchanged. If the property doesn't exist, the default flags (0) will be used. |
Flags in this range are not used by Qt Script, and can be used for custom purposes.
The PropertyFlags type is a typedef forQFlags<PropertyFlag>. It stores an OR combination of PropertyFlag values.
This enum specifies how to look up a property of an object.
| Constant | Value | Description |
|---|---|---|
QScriptValue::ResolveLocal | 0x00 | Only check the object's own properties. |
QScriptValue::ResolvePrototype | 0x01 | Check the object's own properties first, then search the prototype chain. This is the default. |
Check the object's own properties first, then search the scope chain.
Check the object's own properties first, then search the prototype chain, and finally search the scope chain.
The ResolveFlags type is a typedef forQFlags<ResolveFlag>. It stores an OR combination of ResolveFlag values.
This enum is used to specify a single-valued type.
| Constant | Value | Description |
|---|---|---|
QScriptValue::UndefinedValue | 1 | An undefined value. |
QScriptValue::NullValue | 0 | A null value. |
Constructs an invalidQScriptValue.
Constructs a newQScriptValue that is a copy ofother.
Note that ifother is an object (i.e.,isObject() would return true), then only a reference to the underlying object is copied into the new script value (i.e., the object itself is not copied).
Constructs a newQScriptValue with a specialvalue.
This function was introduced in Qt 4.5.
Constructs a newQScriptValue with a booleanvalue.
This function was introduced in Qt 4.5.
Constructs a newQScriptValue with a numbervalue.
This function was introduced in Qt 4.5.
Constructs a newQScriptValue with a numbervalue.
This function was introduced in Qt 4.5.
Constructs a newQScriptValue with a numbervalue.
This function was introduced in Qt 4.5.
Constructs a newQScriptValue with a stringvalue.
This function was introduced in Qt 4.5.
Constructs a newQScriptValue with a stringvalue.
This function was introduced in Qt 4.5.
Constructs a newQScriptValue with a stringvalue.
This function was introduced in Qt 4.5.
Destroys thisQScriptValue.
Calls thisQScriptValue as a function, usingthisObject as the `this' object in the function call, and passingargs as arguments to the function. Returns the value returned from the function.
If thisQScriptValue is not a function, call() does nothing and returns an invalidQScriptValue.
Note that ifthisObject is not an object, the global object (seeQScriptEngine::globalObject()) will be used as the `this' object.
Calling call() can cause an exception to occur in the script engine; in that case, call() returns the value that was thrown (typically anError object). You can callQScriptEngine::hasUncaughtException() to determine if an exception occurred.
QScriptEngine engine;engine.evaluate("function fullName() { return this.firstName + ' ' + this.lastName; }");engine.evaluate("somePerson = { firstName: 'John', lastName: 'Doe' }");QScriptValue global= engine.globalObject();QScriptValue fullName= global.property("fullName");QScriptValue who= global.property("somePerson");qDebug()<< fullName.call(who).toString();// "John Doe"engine.evaluate("function cube(x) { return x * x * x; }");QScriptValue cube= global.property("cube");QScriptValueList args;args<<3;qDebug()<< cube.call(QScriptValue(), args).toNumber();// 27
See alsoconstruct().
Calls thisQScriptValue as a function, usingthisObject as the `this' object in the function call, and passingarguments as arguments to the function. Returns the value returned from the function.
If thisQScriptValue is not a function,call() does nothing and returns an invalidQScriptValue.
arguments can be an arguments object, an array, null or undefined; any other type will cause a TypeError to be thrown.
Note that ifthisObject is not an object, the global object (seeQScriptEngine::globalObject()) will be used as the `this' object.
One common usage of this function is to forward native function calls to another function:
QScriptValue myNativeFunction(QScriptContext*ctx,QScriptEngine*){QScriptValue otherFunction=...;return otherFunction.call(ctx->thisObject(), ctx->argumentsObject());}
See alsoconstruct() andQScriptContext::argumentsObject().
Creates a newObject and calls thisQScriptValue as a constructor, using the created object as the `this' object and passingargs as arguments. If the return value from the constructor call is an object, then that object is returned; otherwise the default constructed object is returned.
If thisQScriptValue is not a function, construct() does nothing and returns an invalidQScriptValue.
Calling construct() can cause an exception to occur in the script engine; in that case, construct() returns the value that was thrown (typically anError object). You can callQScriptEngine::hasUncaughtException() to determine if an exception occurred.
See alsocall() andQScriptEngine::newObject().
Creates a newObject and calls thisQScriptValue as a constructor, using the created object as the `this' object and passingarguments as arguments. If the return value from the constructor call is an object, then that object is returned; otherwise the default constructed object is returned.
If thisQScriptValue is not a function,construct() does nothing and returns an invalidQScriptValue.
arguments can be an arguments object, an array, null or undefined. Any other type will cause a TypeError to be thrown.
See alsocall(),QScriptEngine::newObject(), andQScriptContext::argumentsObject().
Returns the internal data of thisQScriptValue object.QtScript uses this property to store the primitive value of Date, String, Number and Boolean objects. For other types of object, custom data may be stored usingsetData().
This function was introduced in Qt 4.4.
See alsosetData().
Returns theQScriptEngine that created thisQScriptValue, or 0 if thisQScriptValue is invalid or the value is not associated with a particular engine.
Returns true if thisQScriptValue is equal toother, otherwise returns false. The comparison follows the behavior described inECMA-262 section 11.9.3, "The Abstract Equality Comparison Algorithm".
This function can return true even if the type of thisQScriptValue is different from the type of theother value; i.e. the comparison is not strict. For example, comparing the number 9 to the string "9" returns true; comparing an undefined value to a null value returns true; comparing aNumber object whose primitive value is 6 to aString object whose primitive value is "6" returns true; and comparing the number 1 to the boolean valuetrue returns true. If you want to perform a comparison without such implicit value conversion, usestrictlyEquals().
Note that if thisQScriptValue or theother value are objects, calling this function has side effects on the script engine, since the engine will call the object's valueOf() function (and possiblytoString()) in an attempt to convert the object to a primitive value (possibly resulting in an uncaught script exception).
See alsostrictlyEquals() andlessThan().
Returns true if thisQScriptValue is an instance ofother; otherwise returns false.
ThisQScriptValue is considered to be an instance ofother ifother is a function and the value of theprototype property ofother is in the prototype chain of thisQScriptValue.
Returns true if thisQScriptValue is an object of the Array class; otherwise returns false.
See alsoQScriptEngine::newArray().
Returns true if thisQScriptValue is of the primitive type Boolean; otherwise returns false.
This function was introduced in Qt 4.5.
See alsotoBool().
Returns true if thisQScriptValue is an object of the Date class; otherwise returns false.
See alsoQScriptEngine::newDate().
Returns true if thisQScriptValue is an object of the Error class; otherwise returns false.
See alsoQScriptContext::throwError().
Returns true if thisQScriptValue is a function; otherwise returns false.
See alsocall().
Returns true if thisQScriptValue is of the primitive type Null; otherwise returns false.
See alsoQScriptEngine::nullValue().
Returns true if thisQScriptValue is of the primitive type Number; otherwise returns false.
See alsotoNumber().
Returns true if thisQScriptValue is of the Object type; otherwise returns false.
Note that function values, variant values, andQObject values are objects, so this function returns true for such values.
See alsotoObject() andQScriptEngine::newObject().
Returns true if thisQScriptValue is aQMetaObject; otherwise returns false.
See alsotoQMetaObject() andQScriptEngine::newQMetaObject().
Returns true if thisQScriptValue is aQObject; otherwise returns false.
Note: This function returns true even if theQObject that thisQScriptValue wraps has been deleted.
See alsotoQObject() andQScriptEngine::newQObject().
Returns true if thisQScriptValue is an object of the RegExp class; otherwise returns false.
See alsoQScriptEngine::newRegExp().
Returns true if thisQScriptValue is of the primitive type String; otherwise returns false.
See alsotoString().
Returns true if thisQScriptValue is of the primitive type Undefined; otherwise returns false.
See alsoQScriptEngine::undefinedValue().
Returns true if thisQScriptValue is valid; otherwise returns false.
Returns true if thisQScriptValue is a variant value; otherwise returns false.
See alsotoVariant() andQScriptEngine::newVariant().
Returns true if thisQScriptValue is less thanother, otherwise returns false. The comparison follows the behavior described inECMA-262 section 11.8.5, "The Abstract Relational Comparison Algorithm".
Note that if thisQScriptValue or theother value are objects, calling this function has side effects on the script engine, since the engine will call the object's valueOf() function (and possiblytoString()) in an attempt to convert the object to a primitive value (possibly resulting in an uncaught script exception).
See alsoequals().
Returns the value of thisQScriptValue's property with the givenname, using the givenmode to resolve the property.
If no such property exists, an invalidQScriptValue is returned.
If the property is implemented using a getter function (i.e. has thePropertyGetter flag set), calling property() has side-effects on the script engine, since the getter function will be called (possibly resulting in an uncaught script exception). If an exception occurred, property() returns the value that was thrown (typically anError object).
See alsosetProperty(),propertyFlags(), andQScriptValueIterator.
Returns the value of thisQScriptValue's property with the givenname, using the givenmode to resolve the property.
This overload ofproperty() is useful when you need to look up the same property repeatedly, since the lookup can be performed faster when the name is represented as an interned string.
This function was introduced in Qt 4.4.
See alsoQScriptEngine::toStringHandle() andsetProperty().
This is an overloaded function.
Returns the property at the givenarrayIndex, using the givenmode to resolve the property.
This function is provided for convenience and performance when working with array objects.
If thisQScriptValue is not an Array object, this function behaves as ifproperty() was called with the string representation ofarrayIndex.
Returns the flags of the property with the givenname, using the givenmode to resolve the property.
See alsoproperty().
Returns the flags of the property with the givenname, using the givenmode to resolve the property.
This function was introduced in Qt 4.4.
See alsoproperty().
If thisQScriptValue is an object, returns the internal prototype (__proto__ property) of this object; otherwise returns an invalidQScriptValue.
See alsosetPrototype() andisObject().
Returns the custom script class that this script object is an instance of, or 0 if the object is not of a custom class.
This function was introduced in Qt 4.4.
See alsosetScriptClass().
Sets the internaldata of thisQScriptValue object. You can use this function to set object-specific data that won't be directly accessible to scripts, but may be retrieved in C++ using thedata() function.
This function was introduced in Qt 4.4.
See alsodata() andQScriptEngine::reportAdditionalMemoryCost().
Sets the value of thisQScriptValue's property with the givenname to the givenvalue.
If thisQScriptValue is not an object, this function does nothing.
If thisQScriptValue does not already have a property with namename, a new property is created; the givenflags then specify how this property may be accessed by script code.
Ifvalue is invalid, the property is removed.
If the property is implemented using a setter function (i.e. has thePropertySetter flag set), calling setProperty() has side-effects on the script engine, since the setter function will be called with the givenvalue as argument (possibly resulting in an uncaught script exception).
Note that you cannot specify custom getter or setter functions for built-in properties, such as thelength property of Array objects or meta properties ofQObject objects.
See alsoproperty().
Sets the value of thisQScriptValue's property with the givenname to the givenvalue. The givenflags specify how this property may be accessed by script code.
This overload ofsetProperty() is useful when you need to set the same property repeatedly, since the operation can be performed faster when the name is represented as an interned string.
This function was introduced in Qt 4.4.
See alsoQScriptEngine::toStringHandle().
This is an overloaded function.
Sets the property at the givenarrayIndex to the givenvalue.
This function is provided for convenience and performance when working with array objects.
If thisQScriptValue is not an Array object, this function behaves as ifsetProperty() was called with the string representation ofarrayIndex.
If thisQScriptValue is an object, sets the internal prototype (__proto__ property) of this object to beprototype; otherwise does nothing.
The internal prototype should not be confused with the public property with name "prototype"; the public prototype is usually only set on functions that act as constructors.
See alsoprototype() andisObject().
Sets the custom script class of this script object toscriptClass. This can be used to "promote" a plain script object (e.g. created by the "new" operator in a script, or byQScriptEngine::newObject() in C++) to an object of a custom type.
IfscriptClass is 0, the object will be demoted to a plain script object.
This function was introduced in Qt 4.4.
See alsoscriptClass() andsetData().
Returns true if thisQScriptValue is equal toother using strict comparison (no conversion), otherwise returns false. The comparison follows the behavior described inECMA-262 section 11.9.6, "The Strict Equality Comparison Algorithm".
If the type of thisQScriptValue is different from the type of theother value, this function returns false. If the types are equal, the result depends on the type, as shown in the following table:
| Type | Result |
|---|---|
| Undefined | true |
| Null | true |
| Boolean | true if both values are true, false otherwise |
| Number | false if either value is NaN (Not-a-Number); true if values are equal, false otherwise |
| String | true if both values are exactly the same sequence of characters, false otherwise |
| Object | true if both values refer to the same object, false otherwise |
See alsoequals().
Returns the boolean value of thisQScriptValue, using the conversion rules described inECMA-262 section 9.2, "ToBoolean".
Note that if thisQScriptValue is an object, calling this function has side effects on the script engine, since the engine will call the object's valueOf() function (and possiblytoString()) in an attempt to convert the object to a primitive value (possibly resulting in an uncaught script exception).
This function was introduced in Qt 4.5.
See alsoisBool().
Returns aQDateTime representation of this value, in local time. If thisQScriptValue is not a date, or the value of the date is NaN (Not-a-Number), an invalidQDateTime is returned.
See alsoisDate().
Returns the signed 32-bit integer value of thisQScriptValue, using the conversion rules described inECMA-262 section 9.5, "ToInt32".
Note that if thisQScriptValue is an object, calling this function has side effects on the script engine, since the engine will call the object's valueOf() function (and possiblytoString()) in an attempt to convert the object to a primitive value (possibly resulting in an uncaught script exception).
See alsotoNumber() andtoUInt32().
Returns the integer value of thisQScriptValue, using the conversion rules described inECMA-262 section 9.4, "ToInteger".
Note that if thisQScriptValue is an object, calling this function has side effects on the script engine, since the engine will call the object's valueOf() function (and possiblytoString()) in an attempt to convert the object to a primitive value (possibly resulting in an uncaught script exception).
See alsotoNumber().
Returns the number value of thisQScriptValue, as defined inECMA-262 section 9.3, "ToNumber".
Note that if thisQScriptValue is an object, calling this function has side effects on the script engine, since the engine will call the object's valueOf() function (and possiblytoString()) in an attempt to convert the object to a primitive value (possibly resulting in an uncaught script exception).
See alsoisNumber(),toInteger(),toInt32(),toUInt32(), andtoUInt16().
If thisQScriptValue is aQMetaObject, returns theQMetaObject pointer that theQScriptValue represents; otherwise, returns 0.
See alsoisQMetaObject().
If thisQScriptValue is aQObject, returns theQObject pointer that theQScriptValue represents; otherwise, returns 0.
If theQObject that thisQScriptValue wraps has been deleted, this function returns 0 (i.e. it is possible for toQObject() to return 0 even whenisQObject() returns true).
See alsoisQObject().
Returns theQRegExp representation of this value. If thisQScriptValue is not a regular expression, an emptyQRegExp is returned.
See alsoisRegExp().
Returns the string value of thisQScriptValue, as defined inECMA-262 section 9.8, "ToString".
Note that if thisQScriptValue 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 alsoisString().
Returns the unsigned 16-bit integer value of thisQScriptValue, using the conversion rules described inECMA-262 section 9.7, "ToUint16".
Note that if thisQScriptValue is an object, calling this function has side effects on the script engine, since the engine will call the object's valueOf() function (and possiblytoString()) in an attempt to convert the object to a primitive value (possibly resulting in an uncaught script exception).
See alsotoNumber().
Returns the unsigned 32-bit integer value of thisQScriptValue, using the conversion rules described inECMA-262 section 9.6, "ToUint32".
Note that if thisQScriptValue is an object, calling this function has side effects on the script engine, since the engine will call the object's valueOf() function (and possiblytoString()) in an attempt to convert the object to a primitive value (possibly resulting in an uncaught script exception).
See alsotoNumber() andtoInt32().
Returns theQVariant value of thisQScriptValue, if it can be converted to aQVariant; otherwise returns an invalidQVariant. The conversion is performed according to the following table:
| Input Type | Result |
|---|---|
| Undefined | An invalidQVariant. |
| Null | An invalidQVariant. |
| Boolean | AQVariant containing the value of the boolean. |
| Number | AQVariant containing the value of the number. |
| String | AQVariant containing the value of the string. |
| QVariant Object | The result is theQVariant value of the object (no conversion). |
| QObject Object | AQVariant containing a pointer to theQObject. |
| Date Object | AQVariant containing the date value (toDateTime()). |
| RegExp Object | AQVariant containing the regular expression value (toRegExp()). |
| Array Object | The array is converted to aQVariantList. Each element is converted to aQVariant, recursively; cyclic references are not followed. |
| Object | The object is converted to aQVariantMap. Each property is converted to aQVariant, recursively; cyclic references are not followed. |
See alsoisVariant().
Assigns theother value to thisQScriptValue.
Note that ifother is an object (isObject() returns true), only a reference to the underlying object will be assigned; the object itself will not be copied.
Returns the givenvalue converted to the template typeT.
This function was introduced in Qt 4.3.
See alsoqScriptRegisterMetaType() andQScriptEngine::toScriptValue().
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.