QChildEvent Class Reference [Модуль QtCore]
The QChildEvent class contains event parameters for child object events. Далее...
#include <QChildEvent> Унаследован от QEvent.
Открытые функции
- 6 открытых функций, унаследованных от QEvent
Дополнительные унаследованные члены
- 1 свойство, унаследованное от QEvent
- 1 статический открытый член, унаследованный от 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().
Описание функций-членов
QChildEvent::QChildEvent ( 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.
Смотрите также child().
bool QChildEvent::added () const
Returns true if type() is QEvent::ChildAdded; otherwise returns false.
QObject * QChildEvent::child () const
Returns the child object that was added or removed.
bool QChildEvent::polished () const
Returns true if type() is QEvent::ChildPolished; otherwise returns false.
bool QChildEvent::removed () const
Returns true if type() is QEvent::ChildRemoved; otherwise returns false.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) |
Торговые марки |
Qt 4.5.3 |
|