243 QueryFlags flags,
uint *
id)
The QVariant class acts like a union for the most common Qt data types.
Extension
This enum specifies the possible extensions to a QScriptClass.
#define QT_END_NAMESPACE
This macro expands to.
The QScriptClass class provides an interface for defining custom behavior of (a class of) Qt Script o...
virtual ~QScriptClassPrivate()
The QString class provides a Unicode character string.
virtual QScriptValue prototype() const
Returns the object to be used as the prototype of new instances of this class (created with QScriptEn...
The QScriptString class acts as a handle to "interned" strings in a QScriptEngine.
virtual bool supportsExtension(Extension extension) const
Returns true if the QScriptClass supports the given extension; otherwise, false is returned...
The QScriptEngine class provides an environment for evaluating Qt Script code.
QScriptEngine * engine() const
Returns the engine that this QScriptClass is associated with.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual QVariant extension(Extension extension, const QVariant &argument=QVariant())
This virtual function can be reimplemented in a QScriptClass subclass to provide support for extensio...
The QScriptClassPropertyIterator class provides an iterator interface for custom Qt Script objects...
virtual QueryFlags queryProperty(const QScriptValue &object, const QScriptString &name, QueryFlags flags, uint *id)
Queries this script class for how access to the property with the given name of the given object shou...
virtual QScriptValue property(const QScriptValue &object, const QScriptString &name, uint id)
Returns the value of the property with the given name of the given object.
virtual ~QScriptClass()
Destroys the QScriptClass object.
virtual void setProperty(QScriptValue &object, const QScriptString &name, uint id, const QScriptValue &value)
Sets the property with the given name of the given object to the given value.
#define Q_DECLARE_PUBLIC(Class)
virtual QString name() const
Returns the name of the script class.
QScriptClass(QScriptEngine *engine)
Constructs a QScriptClass object to be used in the given engine.
The QScriptValue class acts as a container for the Qt Script data types.
virtual QScriptValue::PropertyFlags propertyFlags(const QScriptValue &object, const QScriptString &name, uint id)
Returns the flags of the property with the given name of the given object.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
virtual QScriptClassPropertyIterator * newIterator(const QScriptValue &object)
Returns an iterator for traversing custom properties of the given object.
QScopedPointer< QScriptClassPrivate > d_ptr