Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > d5e62c01ae8d1e579463c6a871dd44bf > files > 3777

qtbase5-doc-5.12.6-2.mga7.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" />
<!-- qgraphicsanchorlayout.cpp -->
  <title>QGraphicsAnchor Class | Qt Widgets 5.12.6</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.12</td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-module.html">C++ Classes</a></td><td >QGraphicsAnchor</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtwidgets-index.html">Qt 5.12.6 Reference Documentation</a></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="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</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">QGraphicsAnchor Class</h1>
<!-- $$$QGraphicsAnchor-brief -->
<p>The <a href="qgraphicsanchor.html">QGraphicsAnchor</a> class represents an anchor between two items in a <a href="qgraphicsanchorlayout.html">QGraphicsAnchorLayout</a>. <a href="#details">More...</a></p>
<!-- @@@QGraphicsAnchor -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QGraphicsAnchor&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += widgets</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 4.6</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="../qtcore/qobject.html">QObject</a></td></tr></table></div><ul>
<li><a href="qgraphicsanchor-members.html">List of all members, including inherited members</a></li>
<li><a href="qgraphicsanchor-obsolete.html">Obsolete members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><a href="qgraphicsanchor.html#sizePolicy-prop">sizePolicy</a></b> : QSizePolicy::Policy</li>
<li class="fn"><b><a href="qgraphicsanchor.html#spacing-prop">spacing</a></b> : qreal</li>
</ul>
<ul>
<li class="fn">1 property inherited from <a href="../qtcore/qobject.html#properties">QObject</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"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsanchor.html#dtor.QGraphicsAnchor">~QGraphicsAnchor</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsanchor.html#sizePolicy-prop">setSizePolicy</a></b>(QSizePolicy::Policy <i>policy</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsanchor.html#spacing-prop">setSpacing</a></b>(qreal <i>spacing</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSizePolicy::Policy </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsanchor.html#sizePolicy-prop">sizePolicy</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsanchor.html#spacing-prop">spacing</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsanchor.html#spacing-prop">unsetSpacing</a></b>()</td></tr>
</table></div>
<ul>
<li class="fn">31 public functions inherited from <a href="../qtcore/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="static-public-members"></a>
<h2 id="static-public-members">Static Public Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> const QMetaObject </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsanchor.html#staticMetaObject-var">staticMetaObject</a></b></td></tr>
</table></div>
<ul>
<li class="fn">9 static public members inherited from <a href="../qtcore/qobject.html#static-public-members">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 public slot inherited from <a href="../qtcore/qobject.html#public-slots">QObject</a></li>
<li class="fn">2 signals inherited from <a href="../qtcore/qobject.html#signals">QObject</a></li>
<li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QGraphicsAnchor-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qgraphicsanchor.html">QGraphicsAnchor</a> class represents an anchor between two items in a <a href="qgraphicsanchorlayout.html">QGraphicsAnchorLayout</a>.</p>
<p>The graphics anchor provides an API that enables you to query and manipulate the properties an anchor has. When an anchor is added to the layout with <a href="qgraphicsanchorlayout.html#addAnchor">QGraphicsAnchorLayout::addAnchor</a>(), a <a href="qgraphicsanchor.html">QGraphicsAnchor</a> instance is returned where the properties are initialized to their default values. The properties can then be further changed, and they will be picked up the next time the layout is activated.</p>
</div>
<p><b>See also </b><a href="qgraphicsanchorlayout.html#anchor">QGraphicsAnchorLayout::anchor</a>().</p>
<!-- @@@QGraphicsAnchor -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$sizePolicy-prop$$$sizePolicy$$$setSizePolicyQSizePolicy::Policy -->
<h3 class="fn" id="sizePolicy-prop"><a name="sizePolicy-prop"></a><span class="name">sizePolicy</span> : <span class="type"><a href="qsizepolicy.html#Policy-enum">QSizePolicy::Policy</a></span></h3>
<p>This property holds the size policy for the <a href="qgraphicsanchor.html">QGraphicsAnchor</a>.</p>
<p>By setting the size policy on an anchor you can configure how the anchor can resize itself from its preferred spacing. For instance, if the anchor has the size policy <a href="qsizepolicy.html#Policy-enum">QSizePolicy::Minimum</a>, the spacing is the minimum size of the anchor. However, its size can grow up to the anchors maximum size. If the default size policy is <a href="qsizepolicy.html#Policy-enum">QSizePolicy::Fixed</a>, the anchor can neither grow or shrink, which means that the only size the anchor can have is the spacing. <a href="qsizepolicy.html#Policy-enum">QSizePolicy::Fixed</a> is the default size policy. <a href="qgraphicsanchor.html">QGraphicsAnchor</a> always has a minimum spacing of 0 and a very large maximum spacing.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QSizePolicy::Policy </td><td class="memItemRight bottomAlign"><span class="name"><b>sizePolicy</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSizePolicy</b></span>(QSizePolicy::Policy <i>policy</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qgraphicsanchor.html#spacing-prop">QGraphicsAnchor::spacing</a>.</p>
<!-- @@@sizePolicy -->
<!-- $$$spacing-prop$$$spacing$$$setSpacingqreal$$$unsetSpacing -->
<h3 class="fn" id="spacing-prop"><a name="spacing-prop"></a><span class="name">spacing</span> : <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span></h3>
<p>This property holds the preferred space between items in the <a href="qgraphicsanchorlayout.html">QGraphicsAnchorLayout</a>.</p>
<p>Depending on the anchor type, the default spacing is either 0 or a value returned from the style.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>spacing</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setSpacing</b></span>(qreal <i>spacing</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>unsetSpacing</b></span>()</td></tr>
</table></div>
<p><b>See also </b><a href="qgraphicsanchorlayout.html#addAnchor">QGraphicsAnchorLayout::addAnchor</a>().</p>
<!-- @@@spacing -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$~QGraphicsAnchor[overload1]$$$~QGraphicsAnchor -->
<h3 class="fn" id="dtor.QGraphicsAnchor"><a name="dtor.QGraphicsAnchor"></a><code>[virtual] </code>QGraphicsAnchor::<span class="name">~QGraphicsAnchor</span>()</h3>
<p>Removes the <a href="qgraphicsanchor.html">QGraphicsAnchor</a> object from the layout and destroys it.</p>
<!-- @@@~QGraphicsAnchor -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2019 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>