QStateMachine::SignalEvent Class

class QStateMachine::SignalEvent

SignalEvent 类表示 Qt 信号事件。更多

公共函数

virtual ~SignalEvent()
QList<QVariant> arguments() const
QObject *sender() const
int signalIndex() const

详细描述

信号事件由QStateMachine 响应 Qt 信号而生成。QSignalTransition 类提供了与信号事件相关的过渡。QStateMachine::SignalEventQt State Machine Framework 的一部分。

sender() 函数返回生成信号的对象。signalIndex() 函数返回信号的索引。arguments() 函数返回信号的参数。

另请参阅 QSignalTransition

成员函数文档

[virtual noexcept] SignalEvent::~SignalEvent()

摧毁SignalEvent.

QList<QVariant> SignalEvent::arguments() const

返回信号的参数。

QObject *SignalEvent::sender() const

返回发出信号的对象。

另请参阅 QObject::sender().

int SignalEvent::signalIndex() const

返回信号的索引。

另请参阅 QMetaObject::indexOfSignal() 和QMetaObject::method()。

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