Qt logo

QCustomEvent Class Reference


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

#include <qevent.h>

Inherits QEvent.

List of all member functions.

Public Members


Detailed Description

The QCustomEvent class provides support for custom events.

QCustomEvent is a user-defined event type which contains a void*.

Warning: This event class is internally used to implement Qt enhancements. It is not advisable to use QCustomEvent in normal applications, where other event types and the signal/slot mechanism can do the job.


Member Function Documentation

QCustomEvent::QCustomEvent ( int type, void * data )

Constructs a custom event object with the event type type and a pointer to data.

void * QCustomEvent::data () const

Returns a pointer to the event data (specified in the constructor).

The event data can be anything and must be casted to something useful based on the event type. Again, it is not recommended to use custom events unless you are implementing Qt kernel enhancements.


Search the documentation, FAQ, qt-interest archive and more (uses www.troll.no):


This file is part of the Qt toolkit, copyright © 1995-98 Troll Tech, all rights reserved.

It was generated from the following files:


Copyright © 1998 Troll TechTrademarks
Qt version 1.42