Sophie

Sophie

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

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" />
<!-- qpolygon.cpp -->
  <title>QPolygonF Class | Qt GUI 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="qtgui-index.html">Qt GUI</a></td><td ><a href="qtgui-module.html">C++ Classes</a></td><td >QPolygonF</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtgui-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="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#related-non-members">Related Non-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">QPolygonF Class</h1>
<!-- $$$QPolygonF-brief -->
<p>The <a href="qpolygonf.html">QPolygonF</a> class provides a vector of points using floating point precision. <a href="#details">More...</a></p>
<!-- @@@QPolygonF -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QPolygonF&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += gui</td></tr></table></div><ul>
<li><a href="qpolygonf-members.html">List of all members, including inherited members</a></li>
</ul>
<p><b>Note:</b> All functions in this class are reentrant.</p>
<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="qpolygonf.html#QPolygonF">QPolygonF</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#QPolygonF-1">QPolygonF</a></b>(int <i>size</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#QPolygonF-2">QPolygonF</a></b>(const QVector&lt;QPointF&gt; &amp;<i>points</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#QPolygonF-3">QPolygonF</a></b>(QVector&lt;QPointF&gt; &amp;&amp;<i>v</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#QPolygonF-4">QPolygonF</a></b>(const QRectF &amp;<i>rectangle</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#QPolygonF-5">QPolygonF</a></b>(const QPolygon &amp;<i>polygon</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#QPolygonF-6">QPolygonF</a></b>(const QPolygonF &amp;<i>polygon</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#QPolygonF-7">QPolygonF</a></b>(QPolygonF &amp;&amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#dtor.QPolygonF">~QPolygonF</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRectF </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#boundingRect">boundingRect</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#containsPoint">containsPoint</a></b>(const QPointF &amp;<i>point</i>, Qt::FillRule <i>fillRule</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygonF </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#intersected">intersected</a></b>(const QPolygonF &amp;<i>r</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#intersects">intersects</a></b>(const QPolygonF &amp;<i>p</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#isClosed">isClosed</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygonF </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#subtracted">subtracted</a></b>(const QPolygonF &amp;<i>r</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#swap">swap</a></b>(QPolygonF &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygon </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#toPolygon">toPolygon</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#translate">translate</a></b>(const QPointF &amp;<i>offset</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#translate-1">translate</a></b>(qreal <i>dx</i>, qreal <i>dy</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygonF </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#translated">translated</a></b>(const QPointF &amp;<i>offset</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygonF </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#translated-1">translated</a></b>(qreal <i>dx</i>, qreal <i>dy</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygonF </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#united">united</a></b>(const QPolygonF &amp;<i>r</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QVariant </td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#operator-QVariant">operator QVariant</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygonF &amp;</td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#operator-eq">operator=</a></b>(QPolygonF &amp;&amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPolygonF &amp;</td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#operator-eq-1">operator=</a></b>(const QPolygonF &amp;<i>other</i>)</td></tr>
</table></div>
<a name="related-non-members"></a>
<h2 id="related-non-members">Related Non-Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp;</td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#operator-lt-lt">operator&lt;&lt;</a></b>(QDataStream &amp;<i>stream</i>, const QPolygonF &amp;<i>polygon</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QDataStream &amp;</td><td class="memItemRight bottomAlign"><b><a href="qpolygonf.html#operator-gt-gt">operator&gt;&gt;</a></b>(QDataStream &amp;<i>stream</i>, QPolygonF &amp;<i>polygon</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QPolygonF-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qpolygonf.html">QPolygonF</a> class provides a vector of points using floating point precision.</p>
<p>A <a href="qpolygonf.html">QPolygonF</a> is a <a href="../qtcore/qvector.html">QVector</a>&lt;<a href="../qtcore/qpointf.html">QPointF</a>&gt;. The easiest way to add points to a <a href="qpolygonf.html">QPolygonF</a> is to use its streaming operator, as illustrated below:</p>
<pre class="cpp">

          <span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> polygon;
          polygon <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span>(<span class="number">10.4</span><span class="operator">,</span> <span class="number">20.5</span>) <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span>(<span class="number">20.2</span><span class="operator">,</span> <span class="number">30.2</span>);

</pre>
<p>In addition to the functions provided by <a href="../qtcore/qvector.html">QVector</a>, <a href="qpolygonf.html">QPolygonF</a> provides the <a href="qpolygonf.html#boundingRect">boundingRect</a>() and <a href="qpolygonf.html#translate">translate</a>() functions for geometry operations. Use the <a href="qmatrix.html#map">QMatrix::map</a>() function for more general transformations of QPolygonFs.</p>
<p><a href="qpolygonf.html">QPolygonF</a> also provides the <a href="qpolygonf.html#isClosed">isClosed</a>() function to determine whether a polygon's start and end points are the same, and the <a href="qpolygonf.html#toPolygon">toPolygon</a>() function returning an integer precision copy of this polygon.</p>
<p>The <a href="qpolygonf.html">QPolygonF</a> class is <a href="../qtcore/implicit-sharing.html">implicitly shared</a>.</p>
</div>
<p><b>See also </b><a href="../qtcore/qvector.html">QVector</a>, <a href="qpolygon.html">QPolygon</a>, and <a href="../qtcore/qlinef.html">QLineF</a>.</p>
<!-- @@@QPolygonF -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QPolygonF[overload1]$$$QPolygonF -->
<h3 class="fn" id="QPolygonF"><a name="QPolygonF"></a>QPolygonF::<span class="name">QPolygonF</span>()</h3>
<p>Constructs a polygon with no points.</p>
<p><b>See also </b><a href="../qtcore/qvector.html#isEmpty">QVector::isEmpty</a>().</p>
<!-- @@@QPolygonF -->
<!-- $$$QPolygonF$$$QPolygonFint -->
<h3 class="fn" id="QPolygonF-1"><a name="QPolygonF-1"></a>QPolygonF::<span class="name">QPolygonF</span>(<span class="type">int</span> <i>size</i>)</h3>
<p>Constructs a polygon of the given <i>size</i>. Creates an empty polygon if <i>size</i> == 0.</p>
<p><b>See also </b><a href="../qtcore/qvector.html#isEmpty">QVector::isEmpty</a>().</p>
<!-- @@@QPolygonF -->
<!-- $$$QPolygonF$$$QPolygonFconstQVector<QPointF>& -->
<h3 class="fn" id="QPolygonF-2"><a name="QPolygonF-2"></a>QPolygonF::<span class="name">QPolygonF</span>(const <span class="type"><a href="../qtcore/qvector.html">QVector</a></span>&lt;<span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span>&gt; &amp;<i>points</i>)</h3>
<p>Constructs a polygon containing the specified <i>points</i>.</p>
<!-- @@@QPolygonF -->
<!-- $$$QPolygonF$$$QPolygonFQVector<QPointF>&& -->
<h3 class="fn" id="QPolygonF-3"><a name="QPolygonF-3"></a>QPolygonF::<span class="name">QPolygonF</span>(<span class="type"><a href="../qtcore/qvector.html">QVector</a></span>&lt;<span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span>&gt; &amp;&amp;<i>v</i>)</h3>
<p>Default constructs an instance of QPolygonF.</p><!-- @@@QPolygonF -->
<!-- $$$QPolygonF$$$QPolygonFconstQRectF& -->
<h3 class="fn" id="QPolygonF-4"><a name="QPolygonF-4"></a>QPolygonF::<span class="name">QPolygonF</span>(const <span class="type"><a href="../qtcore/qrectf.html">QRectF</a></span> &amp;<i>rectangle</i>)</h3>
<p>Constructs a closed polygon from the specified <i>rectangle</i>.</p>
<p>The polygon contains the four vertices of the rectangle in clockwise order starting and ending with the top-left vertex.</p>
<p><b>See also </b><a href="qpolygonf.html#isClosed">isClosed</a>().</p>
<!-- @@@QPolygonF -->
<!-- $$$QPolygonF$$$QPolygonFconstQPolygon& -->
<h3 class="fn" id="QPolygonF-5"><a name="QPolygonF-5"></a>QPolygonF::<span class="name">QPolygonF</span>(const <span class="type"><a href="qpolygon.html">QPolygon</a></span> &amp;<i>polygon</i>)</h3>
<p>Constructs a float based polygon from the specified integer based <i>polygon</i>.</p>
<p><b>See also </b><a href="qpolygonf.html#toPolygon">toPolygon</a>().</p>
<!-- @@@QPolygonF -->
<!-- $$$QPolygonF$$$QPolygonFconstQPolygonF& -->
<h3 class="fn" id="QPolygonF-6"><a name="QPolygonF-6"></a>QPolygonF::<span class="name">QPolygonF</span>(const <span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> &amp;<i>polygon</i>)</h3>
<p>Constructs a copy of the given <i>polygon</i>.</p>
<!-- @@@QPolygonF -->
<!-- $$$QPolygonF$$$QPolygonFQPolygonF&& -->
<h3 class="fn" id="QPolygonF-7"><a name="QPolygonF-7"></a>QPolygonF::<span class="name">QPolygonF</span>(<span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> &amp;&amp;<i>other</i>)</h3>
<p>Move-copy constructor.</p><!-- @@@QPolygonF -->
<!-- $$$~QPolygonF[overload1]$$$~QPolygonF -->
<h3 class="fn" id="dtor.QPolygonF"><a name="dtor.QPolygonF"></a>QPolygonF::<span class="name">~QPolygonF</span>()</h3>
<p>Destroys the polygon.</p>
<!-- @@@~QPolygonF -->
<!-- $$$boundingRect[overload1]$$$boundingRect -->
<h3 class="fn" id="boundingRect"><a name="boundingRect"></a><span class="type"><a href="../qtcore/qrectf.html">QRectF</a></span> QPolygonF::<span class="name">boundingRect</span>() const</h3>
<p>Returns the bounding rectangle of the polygon, or <a href="../qtcore/qrectf.html">QRectF</a>(0,0,0,0) if the polygon is empty.</p>
<p><b>See also </b><a href="../qtcore/qvector.html#isEmpty">QVector::isEmpty</a>().</p>
<!-- @@@boundingRect -->
<!-- $$$containsPoint[overload1]$$$containsPointconstQPointF&Qt::FillRule -->
<h3 class="fn" id="containsPoint"><a name="containsPoint"></a><span class="type">bool</span> QPolygonF::<span class="name">containsPoint</span>(const <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> &amp;<i>point</i>, <span class="type"><a href="../qtcore/qt.html#FillRule-enum">Qt::FillRule</a></span> <i>fillRule</i>) const</h3>
<p>Returns <code>true</code> if the given <i>point</i> is inside the polygon according to the specified <i>fillRule</i>; otherwise returns <code>false</code>.</p>
<p>This function was introduced in  Qt 4.3.</p>
<!-- @@@containsPoint -->
<!-- $$$intersected[overload1]$$$intersectedconstQPolygonF& -->
<h3 class="fn" id="intersected"><a name="intersected"></a><span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> QPolygonF::<span class="name">intersected</span>(const <span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> &amp;<i>r</i>) const</h3>
<p>Returns a polygon which is the intersection of this polygon and <i>r</i>.</p>
<p>Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.</p>
<p>This function was introduced in  Qt 4.3.</p>
<p><b>See also </b><a href="qpolygonf.html#intersects">intersects</a>().</p>
<!-- @@@intersected -->
<!-- $$$intersects[overload1]$$$intersectsconstQPolygonF& -->
<h3 class="fn" id="intersects"><a name="intersects"></a><span class="type">bool</span> QPolygonF::<span class="name">intersects</span>(const <span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> &amp;<i>p</i>) const</h3>
<p>Returns <code>true</code> if the current polygon intersects at any point the given polygon <i>p</i>. Also returns <code>true</code> if the current polygon contains or is contained by any part of <i>p</i>.</p>
<p>Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.</p>
<p>This function was introduced in  Qt 5.10.</p>
<p><b>See also </b><a href="qpolygonf.html#intersected">intersected</a>().</p>
<!-- @@@intersects -->
<!-- $$$isClosed[overload1]$$$isClosed -->
<h3 class="fn" id="isClosed"><a name="isClosed"></a><span class="type">bool</span> QPolygonF::<span class="name">isClosed</span>() const</h3>
<p>Returns <code>true</code> if the polygon is closed; otherwise returns <code>false</code>.</p>
<p>A polygon is said to be closed if its start point and end point are equal.</p>
<p><b>See also </b><a href="../qtcore/qvector.html#first">QVector::first</a>() and <a href="../qtcore/qvector.html#last">QVector::last</a>().</p>
<!-- @@@isClosed -->
<!-- $$$subtracted[overload1]$$$subtractedconstQPolygonF& -->
<h3 class="fn" id="subtracted"><a name="subtracted"></a><span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> QPolygonF::<span class="name">subtracted</span>(const <span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> &amp;<i>r</i>) const</h3>
<p>Returns a polygon which is <i>r</i> subtracted from this polygon.</p>
<p>Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.</p>
<p>This function was introduced in  Qt 4.3.</p>
<!-- @@@subtracted -->
<!-- $$$swap[overload1]$$$swapQPolygonF& -->
<h3 class="fn" id="swap"><a name="swap"></a><span class="type">void</span> QPolygonF::<span class="name">swap</span>(<span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> &amp;<i>other</i>)</h3>
<p>Swaps polygon <i>other</i> with this polygon. This operation is very fast and never fails.</p>
<p>This function was introduced in  Qt 4.8.</p>
<!-- @@@swap -->
<!-- $$$toPolygon[overload1]$$$toPolygon -->
<h3 class="fn" id="toPolygon"><a name="toPolygon"></a><span class="type"><a href="qpolygon.html">QPolygon</a></span> QPolygonF::<span class="name">toPolygon</span>() const</h3>
<p>Creates and returns a <a href="qpolygon.html">QPolygon</a> by converting each <a href="../qtcore/qpointf.html">QPointF</a> to a <a href="../qtcore/qpoint.html">QPoint</a>.</p>
<p><b>See also </b><a href="../qtcore/qpointf.html#toPoint">QPointF::toPoint</a>().</p>
<!-- @@@toPolygon -->
<!-- $$$translate[overload1]$$$translateconstQPointF& -->
<h3 class="fn" id="translate"><a name="translate"></a><span class="type">void</span> QPolygonF::<span class="name">translate</span>(const <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> &amp;<i>offset</i>)</h3>
<p>Translate all points in the polygon by the given <i>offset</i>.</p>
<p><b>See also </b><a href="qpolygonf.html#translated">translated</a>().</p>
<!-- @@@translate -->
<!-- $$$translate$$$translateqrealqreal -->
<h3 class="fn" id="translate-1"><a name="translate-1"></a><span class="type">void</span> QPolygonF::<span class="name">translate</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>dx</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>dy</i>)</h3>
<p>This is an overloaded function.</p>
<p>Translates all points in the polygon by (<i>dx</i>, <i>dy</i>).</p>
<p><b>See also </b><a href="qpolygonf.html#translated">translated</a>().</p>
<!-- @@@translate -->
<!-- $$$translated[overload1]$$$translatedconstQPointF& -->
<h3 class="fn" id="translated"><a name="translated"></a><span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> QPolygonF::<span class="name">translated</span>(const <span class="type"><a href="../qtcore/qpointf.html">QPointF</a></span> &amp;<i>offset</i>) const</h3>
<p>Returns a copy of the polygon that is translated by the given <i>offset</i>.</p>
<p>This function was introduced in  Qt 4.6.</p>
<p><b>See also </b><a href="qpolygonf.html#translate">translate</a>().</p>
<!-- @@@translated -->
<!-- $$$translated$$$translatedqrealqreal -->
<h3 class="fn" id="translated-1"><a name="translated-1"></a><span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> QPolygonF::<span class="name">translated</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>dx</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>dy</i>) const</h3>
<p>This is an overloaded function.</p>
<p>Returns a copy of the polygon that is translated by (<i>dx</i>, <i>dy</i>).</p>
<p>This function was introduced in  Qt 4.6.</p>
<p><b>See also </b><a href="qpolygonf.html#translate">translate</a>().</p>
<!-- @@@translated -->
<!-- $$$united[overload1]$$$unitedconstQPolygonF& -->
<h3 class="fn" id="united"><a name="united"></a><span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> QPolygonF::<span class="name">united</span>(const <span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> &amp;<i>r</i>) const</h3>
<p>Returns a polygon which is the union of this polygon and <i>r</i>.</p>
<p>Set operations on polygons will treat the polygons as areas. Non-closed polygons will be treated as implicitly closed.</p>
<p>This function was introduced in  Qt 4.3.</p>
<p><b>See also </b><a href="qpolygonf.html#intersected">intersected</a>() and <a href="qpolygonf.html#subtracted">subtracted</a>().</p>
<!-- @@@united -->
<!-- $$$operator QVariant[overload1]$$$operator QVariant -->
<h3 class="fn" id="operator-QVariant"><a name="operator-QVariant"></a><span class="type"><a href="../qtcore/qvariant.html">QVariant</a></span> QPolygonF::<span class="name">operator QVariant</span>() const</h3>
<p>Returns the polygon as a <a href="../qtcore/qvariant.html">QVariant</a>.</p>
<!-- @@@operator QVariant -->
<!-- $$$operator=[overload1]$$$operator=QPolygonF&& -->
<h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> &amp;QPolygonF::<span class="name">operator=</span>(<span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> &amp;&amp;<i>other</i>)</h3>
<p>Move-assignment operator.</p><!-- @@@operator= -->
<!-- $$$operator=$$$operator=constQPolygonF& -->
<h3 class="fn" id="operator-eq-1"><a name="operator-eq-1"></a><span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> &amp;QPolygonF::<span class="name">operator=</span>(const <span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> &amp;<i>other</i>)</h3>
<p>Copy-assignment operator.</p><!-- @@@operator= -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$operator<<[overload1]$$$operator<<QDataStream&constQPolygonF& -->
<h3 class="fn" id="operator-lt-lt"><a name="operator-lt-lt"></a><span class="type"><a href="../qtcore/qdatastream.html">QDataStream</a></span> &amp;<span class="name">operator&lt;&lt;</span>(<span class="type"><a href="../qtcore/qdatastream.html">QDataStream</a></span> &amp;<i>stream</i>, const <span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> &amp;<i>polygon</i>)</h3>
<p>Writes the given <i>polygon</i> to the given <i>stream</i>, and returns a reference to the stream.</p>
<p><b>See also </b><a href="../qtcore/datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator<< -->
<!-- $$$operator>>[overload1]$$$operator>>QDataStream&QPolygonF& -->
<h3 class="fn" id="operator-gt-gt"><a name="operator-gt-gt"></a><span class="type"><a href="../qtcore/qdatastream.html">QDataStream</a></span> &amp;<span class="name">operator&gt;&gt;</span>(<span class="type"><a href="../qtcore/qdatastream.html">QDataStream</a></span> &amp;<i>stream</i>, <span class="type"><a href="qpolygonf.html#QPolygonF">QPolygonF</a></span> &amp;<i>polygon</i>)</h3>
<p>Reads a polygon from the given <i>stream</i> into the given <i>polygon</i>, and returns a reference to the stream.</p>
<p><b>See also </b><a href="../qtcore/datastreamformat.html">Serializing Qt Data Types</a>.</p>
<!-- @@@operator>> -->
</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>