-
Book Overview & Buying
-
Table Of Contents
Cross-Platform Development with Qt 6 and Modern C++
By :
Using particle systems, you can simulate effects such as explosions, fireworks, smoke, fog, and wind. Qt Quick includes a particle system that enables these types of complex, 2D simulations, including support for environmental effects such as gravity and turbulence. Particles are most commonly used in games to add subtle and visually appealing effects to currently selected items in lists or activity notifiers.
ParticleSystem, Painters, Emitters, and Affectors are the four main QML types in this particle system. The ParticleSystem system includes painter, emitter, and affector types. The ParticleSystem type connects all of these types and manages the shared timeline. They must all share the same ParticleSystem in order to interact. Subject to this constraint, you may have as many particle systems as you want, so the logical separation is to have one ParticleSystem type for all the types with which you want to interact, or just one if the number...