Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 514

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" />
<!-- qobject.cpp -->
  <title>Connection 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 >Connection</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">Connection Class</h1>
<span class="small-subtitle">(<a href="qmetaobject-connection.html">QMetaObject::Connection</a>)<br/></span>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;Connection&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += core</td></tr></table></div><ul>
<li><a href="qmetaobject-connection-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="qmetaobject-connection.html#Connection">Connection</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject-connection.html#Connection-2">Connection</a></b>(const Connection &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject-connection.html#Connection-3">Connection</a></b>(Connection &amp;&amp;<i>o</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject-connection.html#dtor.Connection">~Connection</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmetaobject-connection.html#operator-bool">operator bool</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Connection &amp;</td><td class="memItemRight bottomAlign"><b><a href="qmetaobject-connection.html#operator-eq">operator=</a></b>(const Connection &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Connection &amp;</td><td class="memItemRight bottomAlign"><b><a href="qmetaobject-connection.html#operator-eq-1">operator=</a></b>(Connection &amp;&amp;<i>other</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$Connection-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>Represents a handle to a signal-slot connection. It can be used to disconnect that connection, or check if the connection was successful</p>
</div>
<p><b>See also </b><a href="qobject.html#disconnect">QObject::disconnect</a>().</p>
<!-- @@@Connection -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Connection[overload1]$$$Connection -->
<h3 class="fn" id="Connection"><a name="Connection"></a>Connection::<span class="name">Connection</span>()</h3>
<p>Creates a Connection instance.</p>
<!-- @@@Connection -->
<!-- $$$Connection$$$ConnectionconstConnection& -->
<h3 class="fn" id="Connection-2"><a name="Connection-2"></a>Connection::<span class="name">Connection</span>(const <span class="type"><a href="qmetaobject-connection.html#Connection">Connection</a></span> &amp;<i>other</i>)</h3>
<p>Constructs a copy of <i>other</i>.</p>
<!-- @@@Connection -->
<!-- $$$Connection$$$ConnectionConnection&& -->
<h3 class="fn" id="Connection-3"><a name="Connection-3"></a>Connection::<span class="name">Connection</span>(<span class="type"><a href="qmetaobject-connection.html#Connection">Connection</a></span> &amp;&amp;<i>o</i>)</h3>
<p>Move-constructs a Connection instance, making it point to the same object that <i>o</i> was pointing to.</p>
<!-- @@@Connection -->
<!-- $$$~Connection[overload1]$$$~Connection -->
<h3 class="fn" id="dtor.Connection"><a name="dtor.Connection"></a>Connection::<span class="name">~Connection</span>()</h3>
<p>Destructor for <a href="qmetaobject-connection.html">QMetaObject::Connection</a>.</p>
<!-- @@@~Connection -->
<!-- $$$operator bool[overload1]$$$operator bool -->
<h3 class="fn" id="operator-bool"><a name="operator-bool"></a>Connection::<span class="name">operator bool</span>() const</h3>
<p>Returns <code>true</code> if the connection is valid.</p>
<p>The connection is valid if the call to <a href="qobject.html#connect">QObject::connect</a> succeeded. The connection is invalid if <a href="qobject.html#connect">QObject::connect</a> was not able to find the signal or the slot, or if the arguments do not match.</p>
<!-- @@@operator bool -->
<!-- $$$operator=[overload1]$$$operator=constConnection& -->
<h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qmetaobject-connection.html#Connection">Connection</a></span> &amp;Connection::<span class="name">operator=</span>(const <span class="type"><a href="qmetaobject-connection.html#Connection">Connection</a></span> &amp;<i>other</i>)</h3>
<p>Assigns <i>other</i> to this connection and returns a reference to this connection.</p>
<!-- @@@operator= -->
<!-- $$$operator=$$$operator=Connection&& -->
<h3 class="fn" id="operator-eq-1"><a name="operator-eq-1"></a><span class="type"><a href="qmetaobject-connection.html#Connection">Connection</a></span> &amp;Connection::<span class="name">operator=</span>(<span class="type"><a href="qmetaobject-connection.html#Connection">Connection</a></span> &amp;&amp;<i>other</i>)</h3>
<p>Move-assigns <i>other</i> to this object, and returns a reference.</p>
<!-- @@@operator= -->
</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>