- Qt 5.15
- Qt Quick
- QML Types
- Age QML Type
- Qt 5.15.18 Reference Documentation

# Age QML Type

For altering particle ages. More...

Import Statement: | import QtQuick.Particles 2.15
Inherits: | Affector

- List of all members, including inherited members

## Properties

- advancePosition : bool
- lifeLeft : int

## Detailed Description

The Age affector allows you to alter where the particle is in its lifecycle. Common uses are to expire particles prematurely, possibly giving them time to animate out.

The Age affector is also sometimes known as a 'Kill' affector, because with the default parameters it will immediately expire all particles which it affects.

The Age affector only applies to particles which are still alive.

## Property Documentation

advancePosition : bool

advancePosition determines whether position, veclocity and acceleration are included in the simulated aging done by the affector. If advancePosition is false, then the position, velocity and acceleration will remain the same and only other attributes (such as opacity) will advance in the simulation to where it would normally be for that point in the particle's life. With advancePosition set to true the position, velocity and acceleration will also advance to where it would normally be by that point in the particle's life, making it advance its position on screen.

Default value is true.

lifeLeft : int

The amount of life to set the particle to have. Affected particles will advance to a point in their life where they will have this many milliseconds left to live.