QtScript

QtScript — скриптовый язык, который, начиная с версии 4.3.0, является составной частью Qt .

Язык основан на стандарте ECMAScript с некоторыми расширениями[1], такими как возможность соединения с сигналами и слотами объектов QObject.

Использование QtScript (или QSA для более ранних версий Qt) позволяет легко превратить Qt-приложение в полностью переконфигурируемую программную платформу[прояснить].

QtScript Binding Generator[2] предлагает привязки Qt API, чтобы использовать классы Qt прямо из ECMAScript.

С выходом Qt 5.5 (выпущен 1 июля 2015 года), QtScript был объявлен устаревшим[3].

QSA

Ранее Trolltech поставлял библиотеку QSA (Qt Script for Applications) в виде бинарных файлов. С выпуском QtScript эта библиотека была названа устаревшей, и начиная с 2008 года[4] более не поддерживается.

Применение

QtScript в частности используется в:

QtLua

Альтернативой поставляемому в составе пакета Qt интерпретатору JavaScript может служить пакет QtLua[5], позволяющий расширять Qt-приложения с помощью Lua-скриптов.

Примечания

  1. Qt 4.5: QtScript Module: ECMAScript совместимость Архивировано 4 марта 2016 года.
  2. qt-labs — qtscriptgenerator Архивировано 28 декабря 2011 года.
  3. New Features in Qt 5.5 — Deprecated Functionality Архивная копия от 17 ноября 2017 на Wayback Machine (англ.)
  4. Say hello to QtScript(англ) (англ.). Архивировано из оригинала 26 июня 2013 года.
  5. QtLua project home. Дата обращения: 23 июня 2011. Архивировано 22 июня 2011 года.

Ссылки

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.