QML engine:
The QML engine enables nelson programs to display and manipulate graphical content using Qt’s QML framework.
qml_demos % for demonstrations
Interacting with Nelson
Interaction with Nelson happens through the following mechanisms:
- Call Nelson functions from QML,
Button {
text: "Button"
anchors.centerIn: parent
onClicked: nelson.disp('button pressed.')
objectName: "myButton"
}
- Read and set context properties from Nelson and QML.
>> h1 = errordlg()
h1 =
1×1 handle [QObject]
__maximumDimension: int 927
className: WidgetMessageDialog_QMLTYPE_115
clickedButton: int 0
detailedText: QString
height: int 0
icon: int 0
informativeText: QString
isWindow: bool true
modality: int 0
objectName: QString
standardButtons: int 1024
standardIconSource: QUrl
text: QString This is the default error string.
title: QString Error Dialog
visible: bool true
width: int 0
x: int 0
y: int 0