class SLESTESTCUSTOMWIDGET_EXPORT SlEsTestCustomWidget : public QWidget
Q_OBJECT
signals:
void invokeSub(const QString& szSubName, const QVariantList& vntList);
…
}
Custom widget class:
QVariantList vntList;
vntList << 123.456;
emit invokeSub("MySub", vntList);
Dialog box configuration:
DEF MyCWVar1 = (W///,"slestestcustomwidget.SlEsTestCustomWidget")
SUB(on_MyCWVar1_MySub)
DEBUG("SUB(on_MyCWVar1_MySub) was called with parameter: """ << SIGARG[0] <<
"""")
END_SUB
Result easyscreen_log.txt:
[10:22:40.445] DEBUG: SUB(on_MyCWVar1_MySub) was called with parameter: "123.456"
Graphic and logic elements
7.4 Custom widgets
SINUMERIK Integrate Run MyScreens (BE2)
216 Programming Manual, 12/2017, 6FC5397-1DP40-6BA1