The QChildEvent class contains event parameters for child object events. More...
#include <QChildEvent>
Inherits: QEvent.
QChildEvent ( Type type, QObject * child ) | |
bool | added () const |
QObject * | child () const |
bool | polished () const |
bool | removed () const |
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().
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().
Returns true if type() is QEvent::ChildAdded; otherwise returns false.
Returns the child object that was added or removed.
Returns true if type() is QEvent::ChildPolished; otherwise returns false.
Returns true if type() is QEvent::ChildRemoved; otherwise returns false.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.