ADTF  3.18.2
Qt5 Scripting Filter Plugins

Qt5 JavaScript Filter

Introduction

This is a Filter wrapping the functionality of QJSEngine from the Qt framework. Providing a simple way to use JavaScript code as filter in a Filter Graph, receiving and sending samples.

Note
The difference to the Qt5 QML Filter is that this filter is designed to work headless and synchronously in the trigger pipe. Qt5 QML Filter triggers are handled by the GUI Thread, meaning that they are asynchron.

Plugin Information
Plugin Filenameadtf_javascript_filter.adtfplugin
Plugin Descriptionadtf_javascript_filter.plugindescription
Plugin NameQt5 JavaScript Filter Plugin
LicenseADTF
Support Mailsupport@digitalwerk.net
Homepage URLhttps://support.digitalwerk.net/
Plugin Versions
Plugin Version3.18.2
Plugin File Version1.0
adtf3.18.2
adtf::ucom3.1.0
Component Information
NameQt5 JavaScript Filter
CIDjavascript.filter.adtf.cid
DescriptionUse this filter to program a basic logic using Javascript code. Note: This is only recommended for quick filter algorithms. If you need performance, C++ is still the best solution.
TypeFilter
Properties
NameValueTypeDescriptionSubproperties
script_file_namecFilenamePath to used script file.
synchronous_trigger_processingtruetBoolIf enabled triggers will be delayed until they have been processed within the script.
Dynamic Pins
Dynamic Input Pinstrue
Dynamic Output Pinstrue
Dynamic Input Binding Pinstrue
Dynamic Output Binding Pinstrue
Required Interfaces
IID
reference_clock.riddler.streaming.adtf.iid

Qt5 QML Filter

Introduction

This is a Filter wrapping the functionality of QQmlApplicationEngine from the Qt framework. The QQmlApplicationEngine class provides an environment for writing JavaScript code and instantiating Qt5 components from c++. (For more information how to write QML code see the Qt Documentation)

Note
The difference to the Qt5 JavaScript Filter is that this filter is designed for Qt5 QML GUIs. All events/triggers are handled by the Qt event system, which is running asyncronously in the trigger pipe.

Plugin Information
Plugin Filenameadtf_qtquick_filter.adtfplugin
Plugin Descriptionadtf_qtquick_filter.plugindescription
Plugin NameQt5 QML Filter Plugin
LicenseADTF
Support Mailsupport@digitalwerk.net
Homepage URLhttps://support.digitalwerk.net/
Plugin Versions
Plugin Version3.18.2
Plugin File Version1.0
adtf3.18.2
adtf::ucom3.1.0
Component Information
NameQt5 QML Filter
CIDqtquick.filter.adtf.cid
DescriptionUse this filter to program a UI logic using Javascript code with QML Support. Note: This is only recommended for quick visualization. If you need performance, C++ is still the best solution.
TypeFilter
Properties
NameValueTypeDescriptionSubproperties
modulescFilepathListAddtional QML modules to add to the QML Engine.
pluginscFilepathListAddtional QML plugins to add to the QML Engine.
script_file_namecFilenamePath to used script file.
titlecStringWindow title which will be used at runtime within Qt5 ADTF XSystem UI Service.
xsystem_windowtruetBoolCreates an display within Qt5 ADTF XSystem UI Service to show content.
Input Binding Objects
NameIIDProxy OIDDescription
qtshared_serverqtshared.giant.ui.adtf.iidInterface server to provide a common display for shared print access
Dynamic Pins
Dynamic Input Pinstrue
Dynamic Output Pinstrue
Dynamic Input Binding Pinstrue
Dynamic Output Binding Pinstrue
Required Interfaces
IID
reference_clock.riddler.streaming.adtf.iid
qt_xsystem.spider.services.adtf.iid

Help

For more help please have a look at Qt5 JavaScript Filter and Qt5 QML Filter at our ADTF3 Guides.

Wrapper Classes

The following global javascript Objects are available in your scripts:

For all other available wrapper classes and objects please see adtf::javascript::scripting.