Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.core
Class QChildEvent

    java.lang.Object
      com.trolltech.qt.internal.QSignalEmitterInternal
          com.trolltech.qt.QSignalEmitter
              com.trolltech.qt.QtJambiObject
                  com.trolltech.qt.core.QEvent
                      com.trolltech.qt.core.QChildEvent

All Implemented Interfaces:
  QtJambiInterface

    public class QChildEvent

extends QEvent

The QChildEvent class contains event parameters for child object events. Child events are sent immediately to objects when children are added or removed.

In both cases you can only rely on the child being a `QObject` (or, if `QObject::isWidgetType()` returns true, a `QWidget`). This is because in the `QEvent::ChildAdded` case the child is not yet fully constructed; in the `QEvent::ChildRemoved` case it might have already been destructed.

The handler for these events is `QObject::childEvent()`.

Nested Class Summary

Nested classes/interfaces inherited from class com.trolltech.qt.core.QEvent
`QEvent.Type`

Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
`QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9`

Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal`

Field Summary

Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`currentSender`

Constructor Summary
`QChildEvent(QEvent.Type type, QObject child)` Constructs a child event object of a particular `type` for the `child`.

Method Summary
`boolean` | `added()` Returns true if `type()` is `QEvent::ChildAdded` ; otherwise returns false.
`QObject` | `child()` Returns the child object that was added or removed.
`boolean` | `polished()` Returns true if `type()` is `QEvent::ChildPolished` ; otherwise returns false.
`boolean` | `removed()` Returns true if `type()` is `QEvent::ChildRemoved` ; otherwise returns false.
`java.lang.String` | `toString()` Returns a string representation of the `this QChildEvent`.

Methods inherited from class com.trolltech.qt.core.QEvent
`accept, ignore, isAccepted, registerEventType, registerEventType, setAccepted, setT, spontaneous, t, type`

Methods inherited from class com.trolltech.qt.QtJambiObject
`dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr`

Methods inherited from class com.trolltech.qt.QSignalEmitter
`blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread`

Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
`__qt_signalInitialization`

Methods inherited from class java.lang.Object
`clone, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface com.trolltech.qt.QtJambiInterface
`disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership`

Constructor Detail

### QChildEvent

    public QChildEvent(QEvent.Type type,
                       QObject child)

  Constructs a child event object of a particular `type` for the `child`.

  `type` can be `QEvent::ChildAdded` , `QEvent::ChildRemoved` , `QEvent::ChildPolished` , or `QEvent::ChildRemoved` .

See also:
  `child()`.

Method Detail

### added

    public final boolean added()

  Returns true if `type()` is `QEvent::ChildAdded` ; otherwise returns false.

### child

    public final QObject child()

  Returns the child object that was added or removed.

### polished

    public final boolean polished()

  Returns true if `type()` is `QEvent::ChildPolished` ; otherwise returns false.

### removed

    public final boolean removed()

  Returns true if `type()` is `QEvent::ChildRemoved` ; otherwise returns false.

### toString

    public java.lang.String toString()

  Returns a string representation of the `this QChildEvent`.

  Overrides:
    `toString` in class `QEvent`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD