QtScript is a scripting engine that has been part of the
Qt cross-platform
In computing, cross-platform software (also called multi-platform software, platform-agnostic software, or platform-independent software) is computer software that is designed to work in several computing platforms. Some cross-platform software r ...
application framework since version 4.3.0.
The
scripting language
A scripting language or script language is a programming language that is used to manipulate, customize, and automate the facilities of an existing system. Scripting languages are usually interpreted at runtime rather than compiled.
A scripting ...
is based on the
ECMAScript
ECMAScript (; ES) is a JavaScript standard intended to ensure the interoperability of web pages across different browsers. It is standardized by Ecma International in the documenECMA-262
ECMAScript is commonly used for client-side scripting o ...
standard with a few extensions, such as QObject-style signal and slot connections. 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 access directly from ECMAScript. QtScript and the binding generator are used for
Amarok
Amarok may refer to:
Music
* Amarok (band), a Spanish progressive rock band
* ''Amarok'' (Mike Oldfield album), 1990
* ''Amarok'' (Nargaroth album), 2000
* ''Amarok'', 2010 album by Francisco López (musician)
Other uses
* Amarok (wolf), in In ...
2's scripting system.
The current (as of Qt 4.7) implementation uses
JavaScriptCore
WebKit is a browser engine developed by Apple and primarily used in its Safari web browser, as well as on the iOS and iPadOS version of any web browser. WebKit is also used by the BlackBerry Browser, PlayStation consoles beginning from the PS ...
and will not be further developed. The module is deprecated as of Qt 5.5.
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
The GNU General Public License (GNU GPL or simply GPL) is a series of widely used free software licenses that guarantee end users the four freedoms to run, study, share, and modify the software. The license was the first copyleft for general us ...
and a commercial license.
With the release of QtScript, QSA has been deprecated and reached its end of life in 2008.
References
External links
Qt: Making applications scriptableQSA documentation (version 1.2.2)Last working snapshot of QSA homepage from archive.orgQSA download directory
{{ECMAScript
Free computer libraries
JavaScript dialect engines
Qt (software)