Jump to content

QtScript

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Maian (talk | contribs) at 10:00, 8 September 2009 (ecmascript deviations and extensions ref). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

QtScript is a scripting engine that has been part of the Qt toolkit since version 4.3.0.

The scripting language is based on the ECMAScript standard with a couple deviations and extensions[1]. The library contains the engine, and a C++ API for evaluating QtScript code and exposing custom QObject-derived C++ classes to QtScript.

The QtScript Binding Generator provides bindings for the Qt API to be accessed directly from ECMAScript. QtScript and the binding generator are used for Amarok 2's scripting system.

Qt Script for Applications (QSA)

An earlier and unrelated scripting engine, called Qt Script for Applications (QSA), was shipped by Trolltech as a separate Qt-based library, dual-licensed under GPL and a commercial license.

With the release of QtScript, QSA has been deprecated and has reached its end of life in 2008.[2]

References

  1. ^ Qt 4.5: QtScript Module: ECMAScript Compatibility
  2. ^ "Say hello to QtScript!".