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

QScriptValue QScriptEngine::globalObject (  )  const

Returns this engine's Global Object.

The Global Object contains the built-in objects that are part of {ECMA-262}, such as Math, Date and String. Additionally, you can set properties of the Global Object to make your own extensions available to all script code. Non-local variables in script code will be created as properties of the Global Object, as well as local variables in global code.

Definition at line 268 of file qscriptengine.cpp.

Referenced by pushContext(), and QScriptExtensionPlugin::setupPackage().

{
    Q_D(const QScriptEngine);
    return d->m_globalObject;
}


Generated by  Doxygen 1.6.0   Back to index