本页内容

EventConnection QML Type

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

Import Statement: import QtScxml 6.12
Since: QtScxml 5.8

属性

信号

详细说明

若要在状态机发出事件时收到通知,可与相应的信号建立连接。

属性文档

events : stringlist

描述待监听事件的 SCXML 事件指定符列表。

尽管 SCXML 文档中的事件规范允许包含空格,但此列表中不允许出现空格。不过,该列表可以包含多个指定符,以达到相同的效果。

stateMachine : ScxmlStateMachine

触发该事件的状态机。

Signal 文档

occurred(event)

当发生 SCXML 事件event 时,会发出此信号。

注意: 相应的处理程序 为onOccurred 。

另请参阅 QScxmlEvent 。

© 2026 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.