QtScript: Difference between revisions

Content deleted Content added
rephrase; complete refs; update urls; QtScript is now compatible, with extensions; 3× dead link; add Clarify for Binding Generator; rm year link
Line 1:
'''QtScript''' is a scripting engine that has been part of the [[Qt (framework)|Qt]] [[cross-platform]] [[application framework]] since version 4.3.0.
 
The scripting language is based on the [[ECMAScript]] standard with a few deviations and extensions, such as QObject-style signal and slot connections.<ref>[{{cite web |url=http://doc.trolltech.com/4.6/qtscriptscripting.html#ecmascript-compatibility |title=Making Applications Scriptable: ECMAScript Compatibility |work=Qt 4.6: QtScript|publisher=Nokia Module:|accessdate=5 ECMAScriptSeptember Compatibility]2011}}</ref> 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<ref>[http://labs.trolltech.com/page/Projects/QtScript/Generator QtScript BindingBindings Generator]{{dead link|date=September 2011}}</ref> provides bindings for the Qt API to access directly from ECMAScript.{{clarify|post-text=update needed?|date=September 2011}} QtScript and the binding generator are used for [[Amarok (software)|Amarok]] 2's scripting system.
 
The current (as of Qt 4.7) implementation is usinguses [[JavaScriptCore]].
 
== 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 [[GNU General Public License|GPL]] and a commercial license.
 
With the release of QtScript, QSA has been deprecated and has reached its end of life in [[2008]].<ref>{{cite web |last=Hansen |first=Kent |date=5 January 2007 |url=http://labs.trolltechqt.nokia.com/blogs/2007/01/05/say-hello-to-qtscript/ |title=Say hello to QtScript! |work=Qt Labs: Developer Blogs |publisher=Nokia |accessdate=5 September 2011}}</ref>
 
== References ==
{{Reflist}}
 
Line 19:
* [http://doc.trolltech.com/qtscript.html QtScript module]
* [http://doc.trolltech.com/qsa-1.2.2/ QSA documentation (version 1.2.2)]
* [http://web.archive.org/web/20080106190612/http://trolltech.com/products/qt/addon/qsa Last working snapshot of QSA homepage from archive.org]{{dead link|date=September 2011}}
* [http://get.qtsoftware.com/qsa/source/ QSA download directory]{{dead link|date=September 2011}}
 
{{Qt}}