The QChildEvent class contains event parameters for child object events. More...

 #include <QChildEvent>

Inherits: QEvent.

Public Functions

QChildEvent ( Type type, QObject * child )
bool added () const
QObject * child () const
bool polished () const
bool removed () const

Additional Inherited Members

  • 1 property inherited from QEvent
  • 1 static public member inherited from QEvent

Member Function Documentation

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.

See also 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.

comments powered by Disqus