<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qquickparticlegroup.cpp --> <title>ParticleGroup QML Type | Qt Quick 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="qtquick-index.html">Qt Quick</a></td><td ><a href="qtquick-qmlmodule.html">QML Types</a></td><td >ParticleGroup QML Type</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qtquick-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="#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">ParticleGroup QML Type</h1> <span class="subtitle"></span> <!-- $$$ParticleGroup-brief --> <p>For setting attributes on a logical particle group. <a href="#details">More...</a></p> <!-- @@@ParticleGroup --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtQuick.Particles 2.12</td></tr></table></div><ul> <li><a href="qml-qtquick-particles-particlegroup-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-particles-particlegroup.html#duration-prop">duration</a></b></b> : int</li> <li class="fn"><b><b><a href="qml-qtquick-particles-particlegroup.html#durationVariation-prop">durationVariation</a></b></b> : ParticleSystem</li> <li class="fn"><b><b><a href="qml-qtquick-particles-particlegroup.html#name-prop">name</a></b></b> : string</li> <li class="fn"><b><b><a href="qml-qtquick-particles-particlegroup.html#system-prop">system</a></b></b> : ParticleSystem</li> <li class="fn"><b><b><a href="qml-qtquick-particles-particlegroup.html#to-prop">to</a></b></b> : ParticleSystem</li> </ul> <!-- $$$ParticleGroup-description --> <a name="details"></a> <h2 id="details">Detailed Description</h2> <p>This element allows you to set timed transitions on particle groups.</p> <p>You can also use this element to group particle system elements related to the logical particle group. Emitters, Affectors and Painters set as direct children of a <a href="qml-qtquick-particles-particlegroup.html">ParticleGroup</a> will automatically apply to that logical particle group. TrailEmitters will automatically follow the group.</p> <p>If a <a href="qml-qtquick-particles-particlegroup.html">ParticleGroup</a> element is not defined for a group, the group will function normally as if none of the transition properties were set.</p> <!-- @@@ParticleGroup --> <h2>Property Documentation</h2> <!-- $$$duration --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="duration-prop"> <td class="tblQmlPropNode"><p> <a name="duration-prop"></a><span class="name">duration</span> : <span class="type">int</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>The time in milliseconds before the group will attempt to transition.</p> </div></div><!-- @@@duration --> <br/> <!-- $$$durationVariation --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="durationVariation-prop"> <td class="tblQmlPropNode"><p> <a name="durationVariation-prop"></a><span class="name">durationVariation</span> : <span class="type"><a href="qml-qtquick-particles-particlesystem.html">ParticleSystem</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>The maximum number of milliseconds that the duration of the transition cycle varies per particle in the group.</p> <p>Default value is zero.</p> </div></div><!-- @@@durationVariation --> <br/> <!-- $$$name --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="name-prop"> <td class="tblQmlPropNode"><p> <a name="name-prop"></a><span class="name">name</span> : <span class="type">string</span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This is the name of the particle group, and how it is generally referred to by other elements.</p> <p>If elements refer to a name which does not have an explicit <a href="qml-qtquick-particles-particlegroup.html">ParticleGroup</a> created, it will work normally (with no transitions specified for the group). If you do not need to assign duration based transitions to a group, you do not need to create a <a href="qml-qtquick-particles-particlegroup.html">ParticleGroup</a> with that name (although you may).</p> </div></div><!-- @@@name --> <br/> <!-- $$$system --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="system-prop"> <td class="tblQmlPropNode"><p> <a name="system-prop"></a><span class="name">system</span> : <span class="type"><a href="qml-qtquick-particles-particlesystem.html">ParticleSystem</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>This is the system which will contain the group.</p> <p>If the <a href="qml-qtquick-particles-particlegroup.html">ParticleGroup</a> is a direct child of a <a href="qml-qtquick-particles-particlesystem.html">ParticleSystem</a>, it will automatically be associated with it.</p> </div></div><!-- @@@system --> <br/> <!-- $$$to --> <div class="qmlitem"><div class="qmlproto"> <div class="table"><table class="qmlname"> <tr valign="top" class="odd" id="to-prop"> <td class="tblQmlPropNode"><p> <a name="to-prop"></a><span class="name">to</span> : <span class="type"><a href="qml-qtquick-particles-particlesystem.html">ParticleSystem</a></span></p></td></tr> </table></div> </div><div class="qmldoc"><p>The weighted list of transitions valid for this group.</p> <p>If the chosen transition stays in this group, another duration (+/- up to <a href="qml-qtquick-particles-particlegroup.html#durationVariation-prop">durationVariation</a>) milliseconds will occur before another transition is attempted.</p> </div></div><!-- @@@to --> <br/> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</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>