QEvent Struct Reference

QEvent base class. More...

#include <qevent.h>

Inheritance diagram for QEvent:

QTimeEvt

List of all members.

Public Attributes

QSignal sig
 signal of the event instance
uint8_t dynamic_
 attributes of a dynamic event (0 for static event)


Detailed Description

QEvent base class.

QEvent represents events without parameters and serves as the base class for derivation of events with parameters.

Note:
All data members of the QEvent class must remain public to keep it an AGGREGATE. Therefore, the attribute QEvent::dynamic_ cannot be declared private.
The following example illustrates how to add an event parameter by inheriting from the QEvent class.
struct QCalcEvt : public QEvent {
    uint8_t keyId;                                  // ID of the key depressed
};

Definition at line 130 of file qevent.h.


The documentation for this struct was generated from the following file:
Generated on Sat Dec 27 21:35:30 2008 for QP/C++ by  doxygen 1.5.4