SignalEvent Class

(QStateMachine::SignalEvent)

The SignalEvent class represents a Qt signal event. More...

Header: #include <SignalEvent>
qmake: QT += core
Since: Qt 4.6
Inherits: QEvent

Public Functions

virtual ~SignalEvent()
QList<QVariant> arguments() const
QObject * sender() const
int signalIndex() const
  • 6 public functions inherited from QEvent

Additional Inherited Members

  • 1 property inherited from QEvent
  • 1 static public member inherited from QEvent

Detailed Description

The SignalEvent class represents a Qt signal event.

A signal event is generated by a QStateMachine in response to a Qt signal. The QSignalTransition class provides a transition associated with a signal event. QStateMachine::SignalEvent is part of The State Machine Framework.

The sender() function returns the object that generated the signal. The signalIndex() function returns the index of the signal. The arguments() function returns the arguments of the signal.

See also QSignalTransition.

Member Function Documentation

[virtual] SignalEvent::~SignalEvent()

Destroys this SignalEvent.

QList<QVariant> SignalEvent::arguments() const

Returns the arguments of the signal.

QObject *SignalEvent::sender() const

Returns the object that emitted the signal.

See also QObject::sender().

int SignalEvent::signalIndex() const

Returns the index of the signal.

See also QMetaObject::indexOfSignal() and QMetaObject::method().

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support