TrailEmitter QML Type

从其他逻辑粒子发射逻辑粒子。更多

Import Statement: import QtQuick.Particles
Inherits:

Emitter

属性

信号

详细描述

该元素向ParticleSystem 发射逻辑粒子,其起始位置基于其他逻辑粒子的起始位置。

属性文档

emitHeight : real

emitShape 按比例缩放后的高度(以像素为单位)。如果设置为TrailEmitter.ParticleSize,高度将是被跟踪粒子的当前大小。

默认值为 0。


emitRatePerParticle : real


emitShape : Shape

由于TrailEmitter 的区域是其跟随的区域,因此可以提供一个单独的形状作为其发射的形状。该形状的宽度和高度由emitWidthemitHeight 指定,并以被跟踪粒子的位置为中心。

默认形状是一个填充矩形。


emitWidth : real

emitShape 按比例缩放的宽度(像素)。如果设置为TrailEmitter.ParticleSize,宽度将是被跟踪粒子的当前大小。

默认为 0。


follow : string

该粒子发射的逻辑粒子类型。


velocityFromMovement : real

如果该值不为零,则发射器的任何移动都将根据移动情况为粒子提供额外的起始速度。附加矢量的角度与发射器移动的角度相同,大小为发射器移动的大小乘以 velocityFromMovement。

默认值为 0。


信号文档

emitFollowParticles(Array particles, Particle followed)

followed particles 包含一个可直接操作的粒子对象数组。

如果使用此信号处理程序,则不会发出 emitParticles 信号。

注: 相应的处理程序是onEmitFollowParticles


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