4#ifndef QJSMANAGEDVALUE_H
5#define QJSMANAGEDVALUE_H
7#include <QtQml/qtqmlglobal.h>
8#include <QtQml/qjsprimitivevalue.h>
9#include <QtQml/qjsvalue.h>
15struct ExecutionEngine;
63 bool isInteger()
const;
67 bool isRegularExpression()
const;
70 bool isVariant()
const;
71 bool isQObject()
const;
72 bool isQMetaObject()
const;
75 bool isJsMetaType()
const;
79 double toNumber()
const;
80 bool toBoolean()
const;
88 int toInteger()
const;
104 bool hasProperty(
quint32 arrayIndex)
const;
105 bool hasOwnProperty(
quint32 arrayIndex)
const;
108 bool deleteProperty(
quint32 arrayIndex);
\inmodule QtCore\reentrant
The QJSEngine class provides an environment for evaluating JavaScript code.
bool isUndefined() const
Returns true if the type of this QJSManagedValue is undefined, or false otherwise.
QJSManagedValue()=default
Creates a QJSManagedValue that represents the JavaScript undefined value.
bool isBoolean() const
Returns true if the type of this QJSManagedValue is boolean, or false otherwise.
bool isNumber() const
Returns true if the type of this QJSManagedValue is number, or false otherwise.
bool isObject() const
Returns true if the type of this QJSManagedValue is object, or false otherwise.
bool isString() const
Returns true if the type of this QJSManagedValue is string, or false otherwise.
bool isFunction() const
Returns true if the type of this QJSManagedValue is function, false otherwise.
bool isSymbol() const
Returns true if the type of this QJSManagedValue is symbol, or false otherwise.
The QJSPrimitiveValue class operates on primitive types in JavaScript semantics.
The QJSValue class acts as a container for Qt/JavaScript data types.
\inmodule QtCore \reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
object setProperty("down", true)
QList< QVariant > arguments
Combined button and popup list for selecting options.
\qmltype Particle \inqmlmodule QtQuick.Particles
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLenum GLsizei GLsizei GLint * values
[15]
static QVariant toVariant(const QV4::Value &value, QMetaType typeHint, bool createJSValueForObjectsAndSymbols, V4ObjectSet *visitedObjects)
char * toString(const MyType &t)
[31]