1QChildEvent(3qt) QChildEvent(3qt)
2
3
4
6 QChildEvent - Event parameters for child object events
7
9 #include <qevent.h>
10
11 Inherits QEvent.
12
13 Public Members
14 QChildEvent ( Type type, QObject * child )
15 QObject * child () const
16 bool inserted () const
17 bool removed () const
18
20 The QChildEvent class contains event parameters for child object
21 events.
22
23 Child events are sent to objects when children are inserted or removed.
24
25 A ChildRemoved event is sent immediately, but a ChildInserted event is
26 posted (with QApplication::postEvent()).
27
28 Note that if a child is removed immediately after it is inserted, the
29 ChildInserted event may be suppressed, but the ChildRemoved event will
30 always be sent. In this case there will be a ChildRemoved event without
31 a corresponding ChildInserted event.
32
33 The handler for these events is QObject::childEvent().
34
35 See also Event Classes.
36
39 Constructs a child event object. The child is the object that is to be
40 removed or inserted.
41
42 The type parameter must be either QEvent::ChildInserted or
43 QEvent::ChildRemoved.
44
46 Returns the child widget that was inserted or removed.
47
49 Returns TRUE if the widget received a new child; otherwise returns
50 FALSE.
51
53 Returns TRUE if the object lost a child; otherwise returns FALSE.
54
55
57 http://doc.trolltech.com/qchildevent.html
58 http://www.trolltech.com/faq/tech.html
59
61 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
62 license file included in the distribution for a complete license
63 statement.
64
66 Generated automatically from the source code.
67
69 If you find a bug in Qt, please report it as described in
70 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
71 help you. Thank you.
72
73 The definitive Qt documentation is provided in HTML format; it is
74 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
75 web browser. This man page is provided as a convenience for those users
76 who prefer man pages, although this format is not officially supported
77 by Trolltech.
78
79 If you find errors in this manual page, please report them to qt-
80 bugs@trolltech.com. Please include the name of the manual page
81 (qchildevent.3qt) and the Qt version (3.3.8).
82
83
84
85Trolltech AS 2 February 2007 QChildEvent(3qt)