<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qquickpath.cpp --> <title>PathCubic QML Type | Qt Quick 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="qtquick-index.html">Qt Quick</a></td><td ><a href="qtquick-qmlmodule.html">QML Types</a></td><td >PathCubic QML Type</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="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">PathCubic QML Type</h1> <span class="subtitle"></span> <!-- $$$PathCubic-brief --> <p>Defines a cubic Bezier curve with two control points <a href="#details">More...</a></p> <!-- @@@PathCubic --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtQuick 2.7</td></tr></table></div><ul> <li><a href="qml-qtquick-pathcubic-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><b><a href="qml-qtquick-pathcubic.html#control1X-prop">control1X</a></b></b> : real</li> <li class="fn"><b><b><a href="qml-qtquick-pathcubic.html#control1Y-prop">control1Y</a></b></b> : real</li> <li class="fn"><b><b><a href="qml-qtquick-pathcubic.html#control2X-prop">control2X</a></b></b> : real</li> <li class="fn"><b><b><a href="qml-qtquick-pathcubic.html#control2Y-prop">control2Y</a></b></b> : real</li> <li class="fn"><b><b><a href="qml-qtquick-pathcubic.html#relativeControl1X-prop">relativeControl1X</a></b></b> : real</li> <li class="fn"><b><b><a href="qml-qtquick-pathcubic.html#relativeControl1Y-prop">relativeControl1Y</a></b></b> : real</li> <li class="fn"><b><b><a href="qml-qtquick-pathcubic.html#relativeControl2X-prop">relativeControl2X</a></b></b> : real</li> <li class="fn"><b><b><a href="qml-qtquick-pathcubic.html#relativeControl2Y-prop">relativeControl2Y</a></b></b> : real</li> <li class="fn"><b><b><a href="qml-qtquick-pathcubic.html#relativeX-prop">relativeX</a></b></b> : real</li> <li class="fn"><b><b><a href="qml-qtquick-pathcubic.html#relativeY-prop">relativeY</a></b></b> : real</li> <li class="fn"><b><b><a href="qml-qtquick-pathcubic.html#x-prop">x</a></b></b> : real</li> <li class="fn"><b><b><a href="qml-qtquick-pathcubic.html#y-prop">y</a></b></b> : real</li> </ul> <!-- $$$PathCubic-description --> <a name="details"></a> <h2 id="details">Detailed Description</h2> <p>The following QML produces the path shown below:</p> <div class="table"><table class="generic"> <tr valign="top" class="odd"><td ><p class="centerAlign"><img src="images/declarative-pathcubic.png" alt="" /></p></td><td ><pre class="qml"> <span class="type"><a href="qml-qtquick-path.html">Path</a></span> { <span class="name">startX</span>: <span class="number">20</span>; <span class="name">startY</span>: <span class="number">0</span> <span class="type"><a href="qml-qtquick-pathcubic.html">PathCubic</a></span> { <span class="name">x</span>: <span class="number">180</span>; <span class="name">y</span>: <span class="number">0</span> <span class="name">control1X</span>: -<span class="number">10</span>; <span class="name">control1Y</span>: <span class="number">90</span> <span class="name">control2X</span>: <span class="number">210</span>; <span class="name">control2Y</span>: <span class="number">90</span> } } </pre> </td></tr> </table></div> <p><b>See also </b><a href="qml-qtquick-path.html">Path</a>, <a href="qml-qtquick-pathquad.html">PathQuad</a>, <a href="qml-qtquick-pathline.html">PathLine</a>, <a href="qml-qtquick-patharc.html">PathArc</a>, <a href="qml-qtquick-pathcurve.html">PathCurve</a>, and <a href="qml-qtquick-pathsvg.html">PathSvg</a>.</p> <!-- @@@PathCubic --> <h2>Property Documentation</h2> <!-- $$$control1X --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="control1X-prop"> <td class="tblQmlPropNode"><p> <a name="control1X-prop"></a><span class="name">control1X</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Defines the position of the first control point.</p> </div></div><!-- @@@control1X --> <br/> <!-- $$$control1Y --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="control1Y-prop"> <td class="tblQmlPropNode"><p> <a name="control1Y-prop"></a><span class="name">control1Y</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Defines the position of the first control point.</p> </div></div><!-- @@@control1Y --> <br/> <!-- $$$control2X --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="control2X-prop"> <td class="tblQmlPropNode"><p> <a name="control2X-prop"></a><span class="name">control2X</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Defines the position of the second control point.</p> </div></div><!-- @@@control2X --> <br/> <!-- $$$control2Y --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="control2Y-prop"> <td class="tblQmlPropNode"><p> <a name="control2Y-prop"></a><span class="name">control2Y</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Defines the position of the second control point.</p> </div></div><!-- @@@control2Y --> <br/> <!-- $$$relativeControl1X --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="relativeControl1X-prop"> <td class="tblQmlPropNode"><p> <a name="relativeControl1X-prop"></a><span class="name">relativeControl1X</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Defines the positions of the control points relative to the curve's start.</p> <p>If both a relative and absolute control position are specified for a control point's axis, the relative position will be used.</p> <p>Relative and absolute positions can be mixed, for example it is valid to set a relative control1 x and an absolute control1 y.</p> <p><b>See also </b><a href="qml-qtquick-pathcubic.html#control1X-prop">control1X</a>, <a href="qml-qtquick-pathcubic.html#control1Y-prop">control1Y</a>, <a href="qml-qtquick-pathcubic.html#control2X-prop">control2X</a>, and <a href="qml-qtquick-pathcubic.html#control2Y-prop">control2Y</a>.</p> </div></div><!-- @@@relativeControl1X --> <br/> <!-- $$$relativeControl1Y --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="relativeControl1Y-prop"> <td class="tblQmlPropNode"><p> <a name="relativeControl1Y-prop"></a><span class="name">relativeControl1Y</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Defines the positions of the control points relative to the curve's start.</p> <p>If both a relative and absolute control position are specified for a control point's axis, the relative position will be used.</p> <p>Relative and absolute positions can be mixed, for example it is valid to set a relative control1 x and an absolute control1 y.</p> <p><b>See also </b><a href="qml-qtquick-pathcubic.html#control1X-prop">control1X</a>, <a href="qml-qtquick-pathcubic.html#control1Y-prop">control1Y</a>, <a href="qml-qtquick-pathcubic.html#control2X-prop">control2X</a>, and <a href="qml-qtquick-pathcubic.html#control2Y-prop">control2Y</a>.</p> </div></div><!-- @@@relativeControl1Y --> <br/> <!-- $$$relativeControl2X --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="relativeControl2X-prop"> <td class="tblQmlPropNode"><p> <a name="relativeControl2X-prop"></a><span class="name">relativeControl2X</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Defines the positions of the control points relative to the curve's start.</p> <p>If both a relative and absolute control position are specified for a control point's axis, the relative position will be used.</p> <p>Relative and absolute positions can be mixed, for example it is valid to set a relative control1 x and an absolute control1 y.</p> <p><b>See also </b><a href="qml-qtquick-pathcubic.html#control1X-prop">control1X</a>, <a href="qml-qtquick-pathcubic.html#control1Y-prop">control1Y</a>, <a href="qml-qtquick-pathcubic.html#control2X-prop">control2X</a>, and <a href="qml-qtquick-pathcubic.html#control2Y-prop">control2Y</a>.</p> </div></div><!-- @@@relativeControl2X --> <br/> <!-- $$$relativeControl2Y --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="relativeControl2Y-prop"> <td class="tblQmlPropNode"><p> <a name="relativeControl2Y-prop"></a><span class="name">relativeControl2Y</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Defines the positions of the control points relative to the curve's start.</p> <p>If both a relative and absolute control position are specified for a control point's axis, the relative position will be used.</p> <p>Relative and absolute positions can be mixed, for example it is valid to set a relative control1 x and an absolute control1 y.</p> <p><b>See also </b><a href="qml-qtquick-pathcubic.html#control1X-prop">control1X</a>, <a href="qml-qtquick-pathcubic.html#control1Y-prop">control1Y</a>, <a href="qml-qtquick-pathcubic.html#control2X-prop">control2X</a>, and <a href="qml-qtquick-pathcubic.html#control2Y-prop">control2Y</a>.</p> </div></div><!-- @@@relativeControl2Y --> <br/> <!-- $$$relativeX --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="relativeX-prop"> <td class="tblQmlPropNode"><p> <a name="relativeX-prop"></a><span class="name">relativeX</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Defines the end point of the curve relative to its start.</p> <p>If both a relative and absolute end position are specified for a single axis, the relative position will be used.</p> <p>Relative and absolute positions can be mixed, for example it is valid to set a relative x and an absolute y.</p> <p><b>See also </b><a href="qml-qtquick-pathcubic.html#x-prop">x</a> and <a href="qml-qtquick-pathcubic.html#y-prop">y</a>.</p> </div></div><!-- @@@relativeX --> <br/> <!-- $$$relativeY --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="relativeY-prop"> <td class="tblQmlPropNode"><p> <a name="relativeY-prop"></a><span class="name">relativeY</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Defines the end point of the curve relative to its start.</p> <p>If both a relative and absolute end position are specified for a single axis, the relative position will be used.</p> <p>Relative and absolute positions can be mixed, for example it is valid to set a relative x and an absolute y.</p> <p><b>See also </b><a href="qml-qtquick-pathcubic.html#x-prop">x</a> and <a href="qml-qtquick-pathcubic.html#y-prop">y</a>.</p> </div></div><!-- @@@relativeY --> <br/> <!-- $$$x --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="x-prop"> <td class="tblQmlPropNode"><p> <a name="x-prop"></a><span class="name">x</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Defines the end point of the curve.</p> <p><b>See also </b><a href="qml-qtquick-pathcubic.html#relativeX-prop">relativeX</a> and <a href="qml-qtquick-pathcubic.html#relativeY-prop">relativeY</a>.</p> </div></div><!-- @@@x --> <br/> <!-- $$$y --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="y-prop"> <td class="tblQmlPropNode"><p> <a name="y-prop"></a><span class="name">y</span> : <span class="type">real</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>Defines the end point of the curve.</p> <p><b>See also </b><a href="qml-qtquick-pathcubic.html#relativeX-prop">relativeX</a> and <a href="qml-qtquick-pathcubic.html#relativeY-prop">relativeY</a>.</p> </div></div><!-- @@@y --> <br/> </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>