<class name="QChildEvent" doc="/** <p>The <a href="QChildEvent.html#QChildEvent(com.trolltech.qt.core.QEvent.Type, com.trolltech.qt.core.QObject)"><tt>QChildEvent</tt></a> class contains event parameters for child object events.</p> <p>Child events are sent immediately to objects when children are added or removed.</p> <p>In both cases you can only rely on the child being a <a href="QObject.html"><tt>QObject</tt></a> (or, if QObject::isWidgetType() returns true, a <a href="%2E%2E/gui/QWidget.html"><tt>QWidget</tt></a>). 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.</p> <p>The handler for these events is QObject::childEvent().</p> */"> <method name="public QChildEvent(com.trolltech.qt.core.QEvent.Type type, com.trolltech.qt.core.QObject child)" doc="/** <p>Constructs a child event object of a particular <tt>type</tt> for the <tt>child</tt>.</p> <p><tt>type</tt> can be QEvent::ChildAdded, QEvent::ChildRemoved, QEvent::ChildPolished, or QEvent::ChildRemoved.</p> @see <a href="QChildEvent.html#child()"><tt>child</tt></a> */"/> <method name="public final boolean added()" doc="/** <p>Returns true if <a href="QEvent.html#type()"><tt>type</tt></a> is QEvent::ChildAdded; otherwise returns false.</p> */"/> <method name="public final com.trolltech.qt.core.QObject child()" doc="/** <p>Returns the child object that was added or removed.</p> */"/> <method name="public final boolean polished()" doc="/** <p>Returns true if <a href="QEvent.html#type()"><tt>type</tt></a> is QEvent::ChildPolished; otherwise returns false.</p> */"/> <method name="public final boolean removed()" doc="/** <p>Returns true if <a href="QEvent.html#type()"><tt>type</tt></a> is QEvent::ChildRemoved; otherwise returns false.</p> */"/> <method name="protected final com.trolltech.qt.core.QObject c()"/> <method name="protected final void setC(com.trolltech.qt.core.QObject c)"/> </class>