Sophie

Sophie

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

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" />
<!-- qgraphicstransform.cpp -->
  <title>QGraphicsScale Class | Qt Widgets 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="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-module.html">C++ Classes</a></td><td >QGraphicsScale</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="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#reimplemented-public-functions">Reimplemented Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</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">QGraphicsScale Class</h1>
<!-- $$$QGraphicsScale-brief -->
<p>The <a href="qgraphicsscale.html">QGraphicsScale</a> class provides a scale transformation. <a href="#details">More...</a></p>
<!-- @@@QGraphicsScale -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QGraphicsScale&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="qgraphicstransform.html">QGraphicsTransform</a></td></tr></table></div><ul>
<li><a href="qgraphicsscale-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><a href="qgraphicsscale.html#origin-prop">origin</a></b> : QVector3D</li>
<li class="fn"><b><a href="qgraphicsscale.html#xScale-prop">xScale</a></b> : qreal</li>
<li class="fn"><b><a href="qgraphicsscale.html#yScale-prop">yScale</a></b> : qreal</li>
<li class="fn"><b><a href="qgraphicsscale.html#zScale-prop">zScale</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"> </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#QGraphicsScale">QGraphicsScale</a></b>(QObject *<i>parent</i> = Q_NULLPTR)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#dtor.QGraphicsScale">~QGraphicsScale</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVector3D </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#origin-prop">origin</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#origin-prop">setOrigin</a></b>(const QVector3D &amp;<i>point</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#xScale-prop">setXScale</a></b>(<i>qreal</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#yScale-prop">setYScale</a></b>(<i>qreal</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#zScale-prop">setZScale</a></b>(<i>qreal</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#xScale-prop">xScale</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#yScale-prop">yScale</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#zScale-prop">zScale</a></b>() const</td></tr>
</table></div>
<a name="reimplemented-public-functions"></a>
<h2 id="reimplemented-public-functions">Reimplemented Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#applyTo">applyTo</a></b>(QMatrix4x4 *<i>matrix</i>) const</td></tr>
</table></div>
<ul>
<li class="fn">1 public function inherited from <a href="qgraphicstransform.html#public-functions">QGraphicsTransform</a></li>
<li class="fn">32 public functions inherited from <a href="../qtcore/qobject.html#public-functions">QObject</a></li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#originChanged">originChanged</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#scaleChanged">scaleChanged</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#xScaleChanged">xScaleChanged</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#yScaleChanged">yScaleChanged</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qgraphicsscale.html#zScaleChanged">zScaleChanged</a></b>()</td></tr>
</table></div>
<ul>
<li class="fn">2 signals inherited from <a href="../qtcore/qobject.html#signals">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">1 public variable inherited from <a href="../qtcore/qobject.html#public-variables">QObject</a></li>
<li class="fn">10 static public members inherited from <a href="../qtcore/qobject.html#static-public-members">QObject</a></li>
<li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected slot inherited from <a href="qgraphicstransform.html#protected-slots">QGraphicsTransform</a></li>
<li class="fn">2 protected variables inherited from <a href="../qtcore/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<!-- $$$QGraphicsScale-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qgraphicsscale.html">QGraphicsScale</a> class provides a scale transformation.</p>
<p><a href="qgraphicsscene.html">QGraphicsScene</a> provides certain parameters to help control how the scale should be applied.</p>
<p>The origin is the point that the item is scaled from (i.e&#x2e;, it stays fixed relative to the parent as the rest of the item grows). By default the origin is <a href="../qtcore/qpointf.html">QPointF</a>(0, 0).</p>
<p>The parameters <a href="qgraphicsscale.html#xScale-prop">xScale</a>, <a href="qgraphicsscale.html#yScale-prop">yScale</a>, and <a href="qgraphicsscale.html#zScale-prop">zScale</a> describe the scale factors to apply in horizontal, vertical, and depth directions. They can take on any value, including 0 (to collapse the item to a point) or negative value. A negative <a href="qgraphicsscale.html#xScale-prop">xScale</a> value will mirror the item horizontally. A negative <a href="qgraphicsscale.html#yScale-prop">yScale</a> value will flip the item vertically. A negative <a href="qgraphicsscale.html#zScale-prop">zScale</a> will flip the item end for end.</p>
</div>
<p><b>See also </b><a href="qgraphicstransform.html">QGraphicsTransform</a>, <a href="qgraphicsitem.html#setScale">QGraphicsItem::setScale</a>(), and <a href="../qtgui/qtransform.html#scale">QTransform::scale</a>().</p>
<!-- @@@QGraphicsScale -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$origin-prop$$$origin$$$setOriginconstQVector3D&$$$originChanged -->
<h3 class="fn" id="origin-prop"><a name="origin-prop"></a><span class="name">origin</span> : <span class="type"><a href="../qtgui/qvector3d.html">QVector3D</a></span></h3>
<p>This property holds the origin of the scale in 3D space.</p>
<p>All scaling will be done relative to this point (i.e&#x2e;, this point will stay fixed, relative to the parent, when the item is scaled).</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QVector3D </td><td class="memItemRight bottomAlign"><span class="name"><b>origin</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setOrigin</b></span>(const QVector3D &amp;<i>point</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qgraphicsscale.html#originChanged">originChanged</a></b></span>()</td></tr>
</table></div>
<p><b>See also </b><a href="qgraphicsscale.html#xScale-prop">xScale</a>, <a href="qgraphicsscale.html#yScale-prop">yScale</a>, and <a href="qgraphicsscale.html#zScale-prop">zScale</a>.</p>
<!-- @@@origin -->
<!-- $$$xScale-prop$$$xScale$$$setXScaleqreal$$$xScaleChanged -->
<h3 class="fn" id="xScale-prop"><a name="xScale-prop"></a><span class="name">xScale</span> : <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span></h3>
<p>This property holds the horizontal scale factor.</p>
<p>The scale factor can be any real number; the default value is 1.0&#x2e; If you set the factor to 0.0, the item will be collapsed to a single point. If you provide a negative value, the item will be mirrored horizontally around its origin.</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>xScale</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setXScale</b></span>(<i>qreal</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qgraphicsscale.html#xScaleChanged">xScaleChanged</a></b></span>()</td></tr>
</table></div>
<p><b>See also </b><a href="qgraphicsscale.html#yScale-prop">yScale</a>, <a href="qgraphicsscale.html#zScale-prop">zScale</a>, and <a href="stylesheet-reference.html#origin">origin</a>.</p>
<!-- @@@xScale -->
<!-- $$$yScale-prop$$$yScale$$$setYScaleqreal$$$yScaleChanged -->
<h3 class="fn" id="yScale-prop"><a name="yScale-prop"></a><span class="name">yScale</span> : <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span></h3>
<p>This property holds the vertical scale factor.</p>
<p>The scale factor can be any real number; the default value is 1.0&#x2e; If you set the factor to 0.0, the item will be collapsed to a single point. If you provide a negative value, the item will be flipped vertically around its origin.</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>yScale</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setYScale</b></span>(<i>qreal</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qgraphicsscale.html#yScaleChanged">yScaleChanged</a></b></span>()</td></tr>
</table></div>
<p><b>See also </b><a href="qgraphicsscale.html#xScale-prop">xScale</a>, <a href="qgraphicsscale.html#zScale-prop">zScale</a>, and <a href="stylesheet-reference.html#origin">origin</a>.</p>
<!-- @@@yScale -->
<!-- $$$zScale-prop$$$zScale$$$setZScaleqreal$$$zScaleChanged -->
<h3 class="fn" id="zScale-prop"><a name="zScale-prop"></a><span class="name">zScale</span> : <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span></h3>
<p>This property holds the depth scale factor.</p>
<p>The scale factor can be any real number; the default value is 1.0&#x2e; If you set the factor to 0.0, the item will be collapsed to a single point. If you provide a negative value, the item will be flipped end for end around its origin.</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>zScale</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setZScale</b></span>(<i>qreal</i>)</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qgraphicsscale.html#zScaleChanged">zScaleChanged</a></b></span>()</td></tr>
</table></div>
<p><b>See also </b><a href="qgraphicsscale.html#xScale-prop">xScale</a>, <a href="qgraphicsscale.html#yScale-prop">yScale</a>, and <a href="stylesheet-reference.html#origin">origin</a>.</p>
<!-- @@@zScale -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QGraphicsScale[overload1]$$$QGraphicsScaleQObject* -->
<h3 class="fn" id="QGraphicsScale"><a name="QGraphicsScale"></a>QGraphicsScale::<span class="name">QGraphicsScale</span>(<span class="type"><a href="../qtcore/qobject.html#QObject">QObject</a></span> *<i>parent</i> = Q_NULLPTR)</h3>
<p>Constructs an empty <a href="qgraphicsscale.html">QGraphicsScale</a> object with the given <i>parent</i>.</p>
<!-- @@@QGraphicsScale -->
<!-- $$$~QGraphicsScale[overload1]$$$~QGraphicsScale -->
<h3 class="fn" id="dtor.QGraphicsScale"><a name="dtor.QGraphicsScale"></a>QGraphicsScale::<span class="name">~QGraphicsScale</span>()</h3>
<p>Destroys the graphics scale.</p>
<!-- @@@~QGraphicsScale -->
<!-- $$$applyTo[overload1]$$$applyToQMatrix4x4* -->
<h3 class="fn" id="applyTo"><a name="applyTo"></a><code>[virtual] </code><span class="type">void</span> QGraphicsScale::<span class="name">applyTo</span>(<span class="type"><a href="../qtgui/qmatrix4x4.html">QMatrix4x4</a></span> *<i>matrix</i>) const</h3>
<p>Reimplemented from <a href="qgraphicstransform.html#applyTo">QGraphicsTransform::applyTo</a>().</p>
<!-- @@@applyTo -->
<!-- $$$originChanged -->
<h3 class="fn" id="originChanged"><a name="originChanged"></a><code>[signal] </code><span class="type">void</span> QGraphicsScale::<span class="name">originChanged</span>()</h3>
<p><a href="qgraphicsscale.html">QGraphicsScale</a> emits this signal when its origin changes.</p>
<p><b>Note:</b> Notifier signal for property <a href="qgraphicsscale.html#origin-prop">origin</a>. </p><p><b>See also </b><a href="qgraphicsscale.html#origin-prop">QGraphicsScale::origin</a>.</p>
<!-- @@@originChanged -->
<!-- $$$scaleChanged[overload1]$$$scaleChanged -->
<h3 class="fn" id="scaleChanged"><a name="scaleChanged"></a><code>[signal] </code><span class="type">void</span> QGraphicsScale::<span class="name">scaleChanged</span>()</h3>
<p>This signal is emitted whenever the <a href="qgraphicsscale.html#xScale-prop">xScale</a>, <a href="qgraphicsscale.html#yScale-prop">yScale</a>, or <a href="qgraphicsscale.html#zScale-prop">zScale</a> of the object changes.</p>
<p><b>See also </b><a href="qgraphicsscale.html#xScale-prop">QGraphicsScale::xScale</a>, <a href="qgraphicsscale.html#yScale-prop">QGraphicsScale::yScale</a>, and <a href="qgraphicsscale.html#zScale-prop">QGraphicsScale::zScale</a>.</p>
<!-- @@@scaleChanged -->
<!-- $$$xScaleChanged -->
<h3 class="fn" id="xScaleChanged"><a name="xScaleChanged"></a><code>[signal] </code><span class="type">void</span> QGraphicsScale::<span class="name">xScaleChanged</span>()</h3>
<p>This signal is emitted whenever the <a href="qgraphicsscale.html#xScale-prop">xScale</a> property changes.</p>
<p>This function was introduced in  Qt 4.7.</p>
<p><b>Note:</b> Notifier signal for property <a href="qgraphicsscale.html#xScale-prop">xScale</a>. </p><!-- @@@xScaleChanged -->
<!-- $$$yScaleChanged -->
<h3 class="fn" id="yScaleChanged"><a name="yScaleChanged"></a><code>[signal] </code><span class="type">void</span> QGraphicsScale::<span class="name">yScaleChanged</span>()</h3>
<p>This signal is emitted whenever the <a href="qgraphicsscale.html#yScale-prop">yScale</a> property changes.</p>
<p>This function was introduced in  Qt 4.7.</p>
<p><b>Note:</b> Notifier signal for property <a href="qgraphicsscale.html#yScale-prop">yScale</a>. </p><!-- @@@yScaleChanged -->
<!-- $$$zScaleChanged -->
<h3 class="fn" id="zScaleChanged"><a name="zScaleChanged"></a><code>[signal] </code><span class="type">void</span> QGraphicsScale::<span class="name">zScaleChanged</span>()</h3>
<p>This signal is emitted whenever the <a href="qgraphicsscale.html#zScale-prop">zScale</a> property changes.</p>
<p>This function was introduced in  Qt 4.7.</p>
<p><b>Note:</b> Notifier signal for property <a href="qgraphicsscale.html#zScale-prop">zScale</a>. </p><!-- @@@zScaleChanged -->
</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>