Qt 4.8
QCustomEvent Class Reference

The QCustomEvent class provides support for custom events. More...

Detailed Description

The QCustomEvent class provides support for custom events.

QCustomEvent has a void * that can be used to store custom data.

In Qt 3, QObject::customEvent() took a QCustomEvent pointer. We found out that this approach was unsatisfactory, because there was often no safe way of deleting the data held in the void *.

In Qt 4, QObject::customEvent() takes a plain QEvent pointer. You can add custom data by subclassing.

See also
QObject::customEvent(), QCoreApplication::notify()

The documentation for this class was generated from the following file: