ParticleMotionWander QML Element
The ParticleMotionWander object moves particles in a somewhat random fashion. More...
Since: | Qt 4.7 |
Properties
Detailed Description
The particles will continue roughly in the original direction, however will randomly drift to each side.
The code below produces an effect similar to falling snow.
Rectangle { width: 240 height: 320 color: "black" Particles { y: 0 width: parent.width height: 30 source: "star.png" lifeSpan: 5000 count: 50 angle: 70 angleDeviation: 36 velocity: 30 velocityDeviation: 10 ParticleMotionWander { xvariance: 30 pace: 100 } } }
See also Particles.
Property Documentation
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. 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.