Compatibility Members for QCustomEvent

以下成员源于类 QCustomEvent are part of the Qt compatibility layer. We advise against using them in new code.

公共函数

QCustomEvent (int type , void * data = 0)
void * data () const
void setData (void * data )

成员函数文档编制

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

Constructs a custom event object with the event type and a pointer to data . The value of type must be at least as large as QEvent::User . By default, the data pointer is set to 0.

void * QCustomEvent:: data () const

Returns a pointer to the generic event data.

另请参阅 setData ().

void QCustomEvent:: setData ( void * data )

Sets the generic data pointer to data .

另请参阅 data ().