Subroutine to be called:
Syntax:
Description:
Parameters:
Example
Customer widget class declaration:
class SLESTESTCUSTOMWIDGET_EXPORT SlEsTestCustomWidget
{
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)
"""")
END_SUB
Result easyscreen_log.txt:
[10:22:40.445] DEBUG: SUB(on_MyCWVar1_MySub) was called with parameter: "123.456"
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
SUB(on_<Variablename>_<Signalname>)
...
END_SUB
Response to a custom widget signal
Variable name
Signal name
SIGARG 0 - 9
Q_OBJECT signals: void invokeSub(const QString& szSubName, const QVariantList&
DEBUG("SUB(on_MyCWVar1_MySub) was called with parameter: """ << SIGARG[0] <<
Name of a dialog box variable to which a custom widget
is assigned.
Name of the custom widget signal
Transfer parameters for the custom widget method.
Supported data formats: See above
Notice: The transfer parameters are always passed "By‐
Val," i.e. only the value and not, for example, the refer‐
ence to a variable is passed.
: public QWidget
Graphic and logic elements
7.4 Custom widgets
183