source: trunk/doc/html/qchildevent.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 4.3 KB
RevLine 
[190]1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qevent.cpp:2143 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QChildEvent Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QChildEvent Class Reference</h1>
33
34<p>The QChildEvent class contains event parameters for child object
35events.
36<a href="#details">More...</a>
37<p><tt>#include &lt;<a href="qevent-h.html">qevent.h</a>&gt;</tt>
38<p>Inherits <a href="qevent.html">QEvent</a>.
39<p><a href="qchildevent-members.html">List of all member functions.</a>
40<h2>Public Members</h2>
41<ul>
42<li class=fn><a href="#QChildEvent"><b>QChildEvent</b></a> ( Type&nbsp;type, QObject&nbsp;*&nbsp;child )</li>
43<li class=fn>QObject * <a href="#child"><b>child</b></a> () const</li>
44<li class=fn>bool <a href="#inserted"><b>inserted</b></a> () const</li>
45<li class=fn>bool <a href="#removed"><b>removed</b></a> () const</li>
46</ul>
47<hr><a name="details"></a><h2>Detailed Description</h2>
48
49
50The QChildEvent class contains event parameters for child object
51events.
52<p>
53<p> Child events are sent to objects when children are inserted or
54removed.
55<p> A <a href="qevent.html#Type-enum">ChildRemoved</a> event is sent immediately, but a <a href="qevent.html#Type-enum">ChildInserted</a> event is <em>posted</em> (with <a href="qapplication.html#postEvent">QApplication::postEvent</a>()).
56<p> Note that if a child is removed immediately after it is inserted,
57the <a href="qevent.html#Type-enum">ChildInserted</a> event may be suppressed, but the <a href="qevent.html#Type-enum">ChildRemoved</a> event will always be sent. In this case there will be
58a <a href="qevent.html#Type-enum">ChildRemoved</a> event without a corresponding <a href="qevent.html#Type-enum">ChildInserted</a>
59event.
60<p> The handler for these events is <a href="qobject.html#childEvent">QObject::childEvent</a>().
61<p>See also <a href="events.html">Event Classes</a>.
62
63<hr><h2>Member Function Documentation</h2>
64<h3 class=fn><a name="QChildEvent"></a>QChildEvent::QChildEvent ( <a href="qevent.html#Type-enum">Type</a>&nbsp;type, <a href="qobject.html">QObject</a>&nbsp;*&nbsp;child )
65</h3>
66
67<p> Constructs a child event object. The <em>child</em> is the object that
68is to be removed or inserted.
69<p> The <em>type</em> parameter must be either <a href="qevent.html#Type-enum">QEvent::ChildInserted</a> or
70<a href="qevent.html#Type-enum">QEvent::ChildRemoved</a>.
71
72<h3 class=fn><a href="qobject.html">QObject</a>&nbsp;* <a name="child"></a>QChildEvent::child () const
73</h3>
74
75<p> Returns the child widget that was inserted or removed.
76
77<h3 class=fn>bool <a name="inserted"></a>QChildEvent::inserted () const
78</h3>
79
80<p> Returns TRUE if the widget received a new child; otherwise returns
81FALSE.
82
83<h3 class=fn>bool <a name="removed"></a>QChildEvent::removed () const
84</h3>
85
86<p> Returns TRUE if the object lost a child; otherwise returns FALSE.
87
88<!-- eof -->
89<hr><p>
90This file is part of the <a href="index.html">Qt toolkit</a>.
91Copyright &copy; 1995-2007
92<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
93<table width=100% cellspacing=0 border=0><tr>
94<td>Copyright &copy; 2007
95<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
96<td align=right><div align=right>Qt 3.3.8</div>
97</table></div></address></body>
98</html>
Note: See TracBrowser for help on using the repository browser.