The QChildEvent class contains event parameters for child object events. More...
|QChildEvent ( Type type, QObject * child )|
|bool||added () const|
|QObject *||child () const|
|bool||polished () const|
|bool||removed () const|
- 6 public functions inherited from QEvent
Additional Inherited Members
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().
Member Function Documentation
Constructs a child event object of a particular type for the child.
See also child().
QObject * QChildEvent::child () const
Returns the child object that was added or removed.
© 2012 Nokia Corporation and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Documentation sources may be obtained from www.qt-project.org.