Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 4147

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qgraphicsanchorlayout.cpp -->
<head>
  <title>Qt 4.6: QGraphicsAnchor Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="//apple_ref/cpp/cl//QGraphicsAnchor"></a>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QGraphicsAnchor Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
</h1>
<p>The QGraphicsAnchor class represents an anchor between two items in a <a href="qgraphicsanchorlayout.html">QGraphicsAnchorLayout</a>. <a href="#details">More...</a></p>
<pre> #include &lt;QGraphicsAnchor&gt;</pre><p>Inherits <a href="qobject.html">QObject</a>.</p>
<p>This class was introduced in Qt 4.6.</p>
<ul>
<li><a href="qgraphicsanchor-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li><div class="fn"><b><a href="qgraphicsanchor.html#sizePolicy-prop">sizePolicy</a></b> : QSizePolicy::Policy</div></li>
<li><div class="fn"><b><a href="qgraphicsanchor.html#spacing-prop">spacing</a></b> : qreal</div></li>
</ul>
<ul>
<li><div bar="2" class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsanchor.html#dtor.QGraphicsAnchor">~QGraphicsAnchor</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsanchor.html#sizePolicy-prop">setSizePolicy</a></b> ( QSizePolicy::Policy <i>policy</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsanchor.html#spacing-prop">setSpacing</a></b> ( qreal <i>spacing</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QSizePolicy::Policy </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsanchor.html#sizePolicy-prop">sizePolicy</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">qreal </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsanchor.html#spacing-prop">spacing</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qgraphicsanchor.html#spacing-prop">unsetSpacing</a></b> ()</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li><div class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
<li><div class="fn"></div>5 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QGraphicsAnchor 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 QGraphicsAnchor 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>
<p>See also <a href="qgraphicsanchorlayout.html#anchor">QGraphicsAnchorLayout::anchor</a>().</p>
<hr />
<h2>Property Documentation</h2>
<a name="//apple_ref/cpp/instm/QGraphicsAnchor/sizePolicy"></a>
<a name="//apple_ref/cpp/instm/QGraphicsAnchor/setSizePolicy"></a>
<h3 class="fn"><a name="sizePolicy-prop"></a>sizePolicy : <a href="qsizepolicy.html#Policy-enum">QSizePolicy::Policy</a></h3>
<p>This property holds the size policy for the QGraphicsAnchor.</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>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">QSizePolicy::Policy </td><td class="memItemRight" valign="bottom"><b>sizePolicy</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setSizePolicy</b> ( QSizePolicy::Policy <i>policy</i> )</td></tr>
</table>
<p>See also <a href="qgraphicsanchor.html#spacing-prop">QGraphicsAnchor::spacing</a>.</p>
<a name="//apple_ref/cpp/instm/QGraphicsAnchor/spacing"></a>
<a name="//apple_ref/cpp/instm/QGraphicsAnchor/setSpacing"></a>
<a name="//apple_ref/cpp/instm/QGraphicsAnchor/unsetSpacing"></a>
<h3 class="fn"><a name="spacing-prop"></a>spacing : <a href="qtglobal.html#qreal-typedef">qreal</a></h3>
<p>This property holds the preferred space between items in the QGraphicsAnchorLayout.</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>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">qreal </td><td class="memItemRight" valign="bottom"><b>spacing</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setSpacing</b> ( qreal <i>spacing</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>unsetSpacing</b> ()</td></tr>
</table>
<p>See also <a href="qgraphicsanchorlayout.html#addAnchor">QGraphicsAnchorLayout::addAnchor</a>().</p>
<hr />
<h2>Member Function Documentation</h2>
<a name="//apple_ref/cpp/instm/QGraphicsAnchor/~QGraphicsAnchor"></a>
<h3 class="fn"><a name="dtor.QGraphicsAnchor"></a>QGraphicsAnchor::~QGraphicsAnchor ()</h3>
<p>Removes the <a href="qgraphicsanchor.html">QGraphicsAnchor</a> object from the layout and destroys it.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="40%" align="right"><div align="right">Qt 4.6.3</div></td>
</tr></table></div></address></body>
</html>