<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qpainterpath.cpp --> <title>Obsolete Members for QPainterPath | Qt GUI 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="qtgui-index.html">Qt GUI</a></td><td ><a href="qtgui-module.html">C++ Classes</a></td><td >QPainterPath</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="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">Obsolete Members for QPainterPath</h1> <p><b>The following members of class <a href="qpainterpath.html">QPainterPath</a> are obsolete.</b> They are provided to keep old source code working. We strongly advise against using them in new code.</p> <h2>Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qpainterpath-obsolete.html#addRoundRect">addRoundRect</a></b>(const QRectF &<i>r</i>, int <i>xRnd</i>, int <i>yRnd</i>)</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qpainterpath-obsolete.html#addRoundRect-1">addRoundRect</a></b>(qreal <i>x</i>, qreal <i>y</i>, qreal <i>w</i>, qreal <i>h</i>, int <i>xRnd</i>, int <i>yRnd</i>)</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qpainterpath-obsolete.html#addRoundRect-2">addRoundRect</a></b>(const QRectF &<i>rect</i>, int <i>roundness</i>)</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qpainterpath-obsolete.html#addRoundRect-3">addRoundRect</a></b>(qreal <i>x</i>, qreal <i>y</i>, qreal <i>width</i>, qreal <i>height</i>, int <i>roundness</i>)</td></tr> <tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>QPainterPath </td><td class="memItemRight bottomAlign"><b><a href="qpainterpath-obsolete.html#subtractedInverted">subtractedInverted</a></b>(const QPainterPath &<i>p</i>) const</td></tr> </table></div> <h2>Member Function Documentation</h2> <!-- $$$addRoundRect[overload1]$$$addRoundRectconstQRectF&intint --> <h3 class="fn" id="addRoundRect"><a name="addRoundRect"></a><span class="type">void</span> QPainterPath::<span class="name">addRoundRect</span>(const <span class="type"><a href="../qtcore/qrectf.html">QRectF</a></span> &<i>r</i>, <span class="type">int</span> <i>xRnd</i>, <span class="type">int</span> <i>yRnd</i>)</h3> <p>Adds a rectangle <i>r</i> with rounded corners to the path.</p> <p>The <i>xRnd</i> and <i>yRnd</i> arguments specify how rounded the corners should be. 0 is angled corners, 99 is maximum roundedness.</p> <p><b>See also </b><a href="qpainterpath.html#addRoundedRect">addRoundedRect</a>().</p> <!-- @@@addRoundRect --> <!-- $$$addRoundRect$$$addRoundRectqrealqrealqrealqrealintint --> <h3 class="fn" id="addRoundRect-1"><a name="addRoundRect-1"></a><span class="type">void</span> QPainterPath::<span class="name">addRoundRect</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>x</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>y</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>w</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>h</i>, <span class="type">int</span> <i>xRnd</i>, <span class="type">int</span> <i>yRnd</i>)</h3> <p>This is an overloaded function.</p> <p>Adds a rectangle with rounded corners to the path. The rectangle is constructed from <i>x</i>, <i>y</i>, and the width and height <i>w</i> and <i>h</i>.</p> <p>The <i>xRnd</i> and <i>yRnd</i> arguments specify how rounded the corners should be. 0 is angled corners, 99 is maximum roundedness.</p> <p><b>See also </b><a href="qpainterpath.html#addRoundedRect">addRoundedRect</a>().</p> <!-- @@@addRoundRect --> <!-- $$$addRoundRect$$$addRoundRectconstQRectF&int --> <h3 class="fn" id="addRoundRect-2"><a name="addRoundRect-2"></a><span class="type">void</span> QPainterPath::<span class="name">addRoundRect</span>(const <span class="type"><a href="../qtcore/qrectf.html">QRectF</a></span> &<i>rect</i>, <span class="type">int</span> <i>roundness</i>)</h3> <p>This is an overloaded function.</p> <p>Adds a rounded rectangle, <i>rect</i>, to the path.</p> <p>The <i>roundness</i> argument specifies uniform roundness for the rectangle. Vertical and horizontal roundness factors will be adjusted accordingly to act uniformly around both axes. Use this method if you want a rectangle equally rounded across both the X and Y axis.</p> <p>This function was introduced in Qt 4.3.</p> <p><b>See also </b><a href="qpainterpath.html#addRoundedRect">addRoundedRect</a>().</p> <!-- @@@addRoundRect --> <!-- $$$addRoundRect$$$addRoundRectqrealqrealqrealqrealint --> <h3 class="fn" id="addRoundRect-3"><a name="addRoundRect-3"></a><span class="type">void</span> QPainterPath::<span class="name">addRoundRect</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>x</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>y</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>width</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>height</i>, <span class="type">int</span> <i>roundness</i>)</h3> <p>This is an overloaded function.</p> <p>Adds a rounded rectangle to the path, defined by the coordinates <i>x</i> and <i>y</i> with the specified <i>width</i> and <i>height</i>.</p> <p>The <i>roundness</i> argument specifies uniform roundness for the rectangle. Vertical and horizontal roundness factors will be adjusted accordingly to act uniformly around both axes. Use this method if you want a rectangle equally rounded across both the X and Y axis.</p> <p>This function was introduced in Qt 4.3.</p> <p><b>See also </b><a href="qpainterpath.html#addRoundedRect">addRoundedRect</a>().</p> <!-- @@@addRoundRect --> <!-- $$$subtractedInverted[overload1]$$$subtractedInvertedconstQPainterPath& --> <h3 class="fn" id="subtractedInverted"><a name="subtractedInverted"></a><span class="type"><a href="qpainterpath.html#QPainterPath">QPainterPath</a></span> QPainterPath::<span class="name">subtractedInverted</span>(const <span class="type"><a href="qpainterpath.html#QPainterPath">QPainterPath</a></span> &<i>p</i>) const</h3> <p>Use <a href="qpainterpath.html#subtracted">subtracted</a>() instead.</p> <p>This function was introduced in Qt 4.3.</p> <p><b>See also </b><a href="qpainterpath.html#subtracted">subtracted</a>().</p> <!-- @@@subtractedInverted --> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</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>