EventConnection QML Type

连接状态机发出的事件。更多

Import Statement: import QtScxml 6.9
Since: QtScxml 5.8

属性

信号

详细说明

为了在状态机发送事件时接收通知,可以创建一个与相应信号的连接。

属性文档

events : stringlist

描述要监听的事件的 SCXML 事件说明列表。

尽管 SCXML 文档中的事件规范允许使用空格,但该列表中不允许使用空格。但是,该列表可以包含多个说明符,以达到相同的效果。


stateMachine : ScxmlStateMachine

发送事件的状态机。


信号文档

occurred(event)

该信号在 SCXML 事件event 发生时发出。

注: 相应的处理程序是onOccurred

另请参阅 QScxmlEvent


© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.