Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

  • Qt 4.8
  • ParticleMotionWander QML Element

ParticleMotionWander QML Element

TheParticleMotionWander 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:240height:320color:"black"Particles {y:0width:parent.widthheight:30source:"star.png"lifeSpan:5000count:50angle:70angleDeviation:36velocity:30velocityDeviation:10ParticleMotionWander {xvariance:30pace:100        }    }}

See alsoParticles.

Property Documentation

pace :real

This property holds how quickly the paricles will move from side to side.


xvariance :real

These properties set the amount to wander in the x and y directions.


yvariance :real

These properties set the amount to wander in the x and y directions.


© 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 theGNU 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.


[8]ページ先頭

©2009-2025 Movatter.jp