ForeachLoopBody#

The ForeachLoopBody class represents a function to be executed on each iteration of an SCXML foreach loop. More

Synopsis#

Virtual functions#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

class PySide6.QtScxml.QScxmlDataModel.ForeachLoopBody#

Creates a new foreach loop body.

abstract PySide6.QtScxml.QScxmlDataModel.ForeachLoopBody.run(ok)#
Parameters:

ok – bool

This function is executed on each iteration. If the execution fails, ok is set to false, otherwise it is set to true.