Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 314

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qcoreevent.cpp -->
  <title>QChildEvent Class | Qt Core 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtcore-index.html">Qt Core</a></td><td ><a href="qtcore-module.html">C++ Classes</a></td><td >QChildEvent</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QChildEvent Class</h1>
<!-- $$$QChildEvent-brief -->
<p>The <a href="qchildevent.html">QChildEvent</a> class contains event parameters for child object events. <a href="#details">More...</a></p>
<!-- @@@QChildEvent -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QChildEvent&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += core</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qevent.html">QEvent</a></td></tr></table></div><ul>
<li><a href="qchildevent-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qchildevent.html#QChildEvent">QChildEvent</a></b>(Type <i>type</i>, QObject *<i>child</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchildevent.html#added">added</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QObject *</td><td class="memItemRight bottomAlign"><b><a href="qchildevent.html#child">child</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchildevent.html#polished">polished</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchildevent.html#removed">removed</a></b>() const</td></tr>
</table></div>
<ul>
<li class="fn">6 public functions inherited from <a href="qevent.html#public-functions">QEvent</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 property inherited from <a href="qevent.html#properties">QEvent</a></li>
<li class="fn">1 static public member inherited from <a href="qevent.html#static-public-members">QEvent</a></li>
</ul>
<a name="details"></a>
<!-- $$$QChildEvent-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qchildevent.html">QChildEvent</a> class contains event parameters for child object events.</p>
<p>Child events are sent immediately to objects when children are added or removed.</p>
<p>In both cases you can only rely on the child being a <a href="qobject.html">QObject</a> (or, if <a href="qobject.html#isWidgetType">QObject::isWidgetType</a>() returns <code>true</code>, a <a href="../qtwidgets/qwidget.html">QWidget</a>). This is because in the <a href="qevent.html#Type-enum">QEvent::ChildAdded</a> case the child is not yet fully constructed; in the <a href="qevent.html#Type-enum">QEvent::ChildRemoved</a> case it might have already been destructed.</p>
<p>The handler for these events is <a href="qobject.html#childEvent">QObject::childEvent</a>().</p>
</div>
<!-- @@@QChildEvent -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QChildEvent[overload1]$$$QChildEventTypeQObject* -->
<h3 class="fn" id="QChildEvent"><a name="QChildEvent"></a>QChildEvent::<span class="name">QChildEvent</span>(<span class="type"><a href="qevent.html#Type-enum">Type</a></span> <i>type</i>, <span class="type"><a href="qobject.html">QObject</a></span> *<i>child</i>)</h3>
<p>Constructs a child event object of a particular <i>type</i> for the <i>child</i>.</p>
<p><i>type</i> can be <a href="qevent.html#Type-enum">QEvent::ChildAdded</a>, <a href="qevent.html#Type-enum">QEvent::ChildRemoved</a>, or <a href="qevent.html#Type-enum">QEvent::ChildPolished</a>.</p>
<p><b>See also </b><a href="qchildevent.html#child">child</a>().</p>
<!-- @@@QChildEvent -->
<!-- $$$added[overload1]$$$added -->
<h3 class="fn" id="added"><a name="added"></a><span class="type">bool</span> QChildEvent::<span class="name">added</span>() const</h3>
<p>Returns <code>true</code> if <a href="qevent.html#type">type</a>() is <a href="qevent.html#Type-enum">QEvent::ChildAdded</a>; otherwise returns false.</p>
<!-- @@@added -->
<!-- $$$child[overload1]$$$child -->
<h3 class="fn" id="child"><a name="child"></a><span class="type"><a href="qobject.html">QObject</a></span> *QChildEvent::<span class="name">child</span>() const</h3>
<p>Returns the child object that was added or removed.</p>
<!-- @@@child -->
<!-- $$$polished[overload1]$$$polished -->
<h3 class="fn" id="polished"><a name="polished"></a><span class="type">bool</span> QChildEvent::<span class="name">polished</span>() const</h3>
<p>Returns <code>true</code> if <a href="qevent.html#type">type</a>() is <a href="qevent.html#Type-enum">QEvent::ChildPolished</a>; otherwise returns false.</p>
<!-- @@@polished -->
<!-- $$$removed[overload1]$$$removed -->
<h3 class="fn" id="removed"><a name="removed"></a><span class="type">bool</span> QChildEvent::<span class="name">removed</span>() const</h3>
<p>Returns <code>true</code> if <a href="qevent.html#type">type</a>() is <a href="qevent.html#Type-enum">QEvent::ChildRemoved</a>; otherwise returns false.</p>
<!-- @@@removed -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>