QtScript是一個Qt 4.3.0及以後版本的腳本引擎。
這個腳本語言是基於ECMAScript語言,ECMA-262標準。該函式庫包含引擎,和一個C++的API作為執行QtScript代碼和創建自定的QObject衍生C++類別,作為QtScript使用。
[https://web.archive.org/web/20090417001554/http://labs.trolltech.com/page/Projects/QtScript/Generator QtScript Binding Generator]提供Qt API的綁定作為ECMAScript直接的存取。QtScript和Binding Generator被用於Amarok 2的腳本系統。
目前版本(Qt 4.7)实现使用JavaScriptCore并且不会进一步开发。这个模块在Qt 5.5版本中被舍弃。
Qt Script for Applications(QSA)
早期的腳本引擎稱為Qt Script for Applications(QSA),是Qt Software推出且獨立於Qt函式庫,在GPL和商業許可雙授權下發布。
QtScript釋出後,QSA已經過時了,並在2008年結束支援。
參考文獻
外部連結
- [https://web.archive.org/web/20080724120915/http://doc.trolltech.com/qtscript.html QtScript module]
- [https://web.archive.org/web/20090523091814/http://doc.trolltech.com/qsa-1.2.2/ QSA documentation(version 1.2.2)]
- [https://web.archive.org/web/20080106190612/http://trolltech.com/products/qt/addon/qsa Last working snapshot of QSA homepage from archive.org]
- [http://get.qtsoftware.com/qsa/source/ QSA download directory]
评论 (0)