ItemParticle QML Type

파티클을 칠할 델리게이트를 지정합니다. 더 보기...

Import Statement: import QtQuick.Particles
Inherits:

ParticlePainter

프로퍼티

방법

상세 설명

프로퍼티 문서

delegate : Component

모든 논리적 파티클에 대해 델리게이트 인스턴스가 생성되어 함께 이동합니다. 델리게이트를 사용하는 대신 아이템 인스턴스를 직접 생성한 후 take 메서드를 사용하여 이동하도록 ItemParticle 에 전달할 수 있습니다.

ItemParticle 에서 생성된 모든 델리게이트 인스턴스는 논리 파티클이 만료되면 소멸됩니다.


fade : bool

true이면 아이템은 수명이 다할 때 자동으로 페이드 인 및 페이드 아웃됩니다. false이면 항목 효과를 직접 구현해야 합니다.

기본값은 참입니다.


메서드 문서

freeze(Item item)

item 로 표현되는 논리적 입자의 시간 흐름을 일시 중단하여 움직임을 제어할 수 있도록 합니다.


give(Item item)

ItemParticleitem 에 대한 제어권을 넘기도록 명령합니다. 그러면 제어가 중단되고 해당 아이템은 논리 입자와의 연관성을 잃게 됩니다.


take(Item item, bool prioritize)

ItemParticleitem 위치의 제어권을 일시적으로 넘겨달라고 요청합니다. 논리 입자를 사용할 수 있게 되면 논리 입자의 움직임을 따라갑니다.

기본적으로 항목은 논리 입자를 기다릴 때 대기열을 형성하지만 prioritizetrue 인 경우 즉시 대기열의 맨 위로 이동합니다.

ItemParticle 는 항목의 소유권을 갖지 않으며 논리적 입자가 만료되면 제어권을 포기합니다. 일반적으로 이 시점에서 다시 대기열에 넣으려면 델리게이트 정의의 아래 줄을 사용하여 이 작업을 수행할 수 있습니다:

ItemParticle.onDetached: itemParticleInstance.take(delegateRootItem);

또는 델리게이트 정의의 아래 줄과 같이 삭제할 수 있습니다:

ItemParticle.onDetached: delegateRootItem.destroy();

unfreeze(Item item)

item 이 나타내는 논리적 파티클의 시간 흐름을 다시 시작하여 파티클 시스템에서 다시 움직일 수 있도록 합니다.


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