Nesta página

QStateMachine::SignalEvent Class

class QStateMachine::SignalEvent

A classe SignalEvent representa um evento de sinal do Qt. Mais...

Funções públicas

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

Descrição detalhada

Um evento de sinal é gerado por um objeto ` QStateMachine ` em resposta a um sinal do Qt. A classe ` QSignalTransition ` fornece uma transição associada a um evento de sinal. ` QStateMachine::SignalEvent ` faz parte da estrutura `Qt State Machine `.

A função ` sender()` retorna o objeto que gerou o sinal. A função ` signalIndex()` retorna o índice do sinal. A função ` arguments()` retorna os argumentos do sinal.

Veja também QSignalTransition.

Documentação das funções-membro

[virtual noexcept] SignalEvent::~SignalEvent()

Destrói isto: SignalEvent.

QList<QVariant> SignalEvent::arguments() const

Retorna os argumentos do sinal.

QObject *SignalEvent::sender() const

Retorna o objeto que emitiu o sinal.

Veja também ` QObject::sender()`.

int SignalEvent::signalIndex() const

Retorna o índice do sinal.

Veja também QMetaObject::indexOfSignal() e QMetaObject::method().

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