_ca.qml file and place it in the same location as the _ca.py file. For file location details, see Python-Based Plugins > Algorithms. optiSLang automatically loads the QML and embeds the user interface into the custom algorithm dialog widget.
- Setting Custom Algorithm Settings From the QML User Interface
- Calling Custom Python Functionality
- Sending Log Messages
Setting Custom Algorithm Settings From the QML User Interface
optiSLang provides a context object to the QML scope namedbackend and resides in the QML root scope. It can be used to access custom algorithim settings.
Settings can be read from and written to the backend.settings property. The settings value is a string containing the JSON representation of the current custom settings type (dynardo::design_point_type).
The JSON.parse and JSON.stringify Javascript functions can be used for conversion.
The backend.onSettingsChanged and backend.onCommitSettingsRequested signals can be used to react to external settings changes (from optiSLang scope, for example, when the settings user interface is shown for the first time) and when the settings are requested to be commited.
Class QMLBackEnd synopsis: