Siemens SINUMERIK 828D Commissioning Manual page 1111

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

The following transfer parameter data formats are supported:
● bool
● uint
● int
● double
● QString
● QByteArray
Programming
Syntax:
Description:
Parameters:
Return value:
Example
Custom widget class declaration:
class SLESTESTCUSTOMWIDGET_EXPORT SlEsTestCustomWidget
{
...
SINUMERIK Integrate Run MyScreens
Programming Manual, 10/2015, 6FC5397-3DP40-5BA3
CallCWMethod
[,Argument 9]")
Calling a custom widget method
Variable name
Method name
Argument 0 - 9
Return value of the custom widget method
The following transfer parameter data formats are supported:
● void
● bool
● uint
● int
● double
● QString
● QByteArray
Notice: Even if the data format of the return value of the custom widget method
is "void," it must be formally assigned to a variable, for example.
Q_OBJECT
public slots:
void myFunc1(int nValue, const QString& szString, double dValue);
("Variablename", "Methodname[, Argument 0][, Argument 1 ...
Name of a dialog box variable to which a custom widget
is assigned
Name of the custom widget name to be called
Transfer parameter for the custom widget method
Supported data formats: see above
Note: The transfer parameters are always passed "By‐
Val," i.e. only the value and not, for example, the refer‐
ence is passed to a variable.
Graphic and logic elements
7.4 Custom widgets
: public QWidget
181

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents