QtScript

QtScript is a scripting engine that has been part of the Qt cross-platform application framework since version 4.3.0. It was first deprecated as of Qt 5.5, then dropped as of Qt 6.5, and replaced by Qt Meta-object Language (QML).

The scripting language is based on the ECMAScript standard with a few extensions, such as QObject-style signal and slot connections.[1] The library contains the engine, and a C++ application programming interface (API) for evaluating QtScript code and exposing custom QObject-derived C++ classes to QtScript.

The QtScript Binding Generator[2] provides bindings for the Qt API to access directly from ECMAScript.[clarification needed update needed?] QtScript and the binding generator are used for Amarok 2's scripting system.

The QtScript version as of Qt 4.7 in 2011 uses JavaScriptCore but was developed no further. The module was deprecated as of Qt 5.5 in April 2015.[3]

Qt Script for Applications (QSA)

An earlier and unrelated scripting engine, named 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 reached its end of life in 2008.[4]

References

  1. ^ "Making Applications Scriptable: ECMAScript Compatibility". Qt 4.6. Nokia. Archived from the original on 2010-09-28. Retrieved 5 September 2011.
  2. ^ "QtScript Generator". Archived from the original on 2011-12-28.
  3. ^ "New Features in Qt 5.5". Qt Company. Retrieved 15 April 2015.
  4. ^ Hansen, Kent (5 January 2007). "Say hello to QtScript!". Qt Labs: Developer Blogs. Nokia. Archived from the original on 2 December 2013. Retrieved 23 November 2013.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.