Qt qml2不存在附着的对象ImageParticle

Qt qml2不存在附着的对象ImageParticle,qt,qml,Qt,Qml,当我尝试在qml2中使用ImageParticle构建粒子系统时,编译器会给出以下错误: Non-existent attached object ImageParticle:{ ^ 以下是我的代码部分: import QtQuick 2.0 import QtQuick.Particles 2.0 Item { id:particle anchors.fill: parent Rectangle{ anchors.fill: parent Partic

当我尝试在qml2中使用ImageParticle构建粒子系统时,编译器会给出以下错误:

Non-existent attached object 
         ImageParticle:{ 
        ^
以下是我的代码部分:

import QtQuick 2.0
import QtQuick.Particles 2.0
Item {
id:particle
anchors.fill: parent
Rectangle{

anchors.fill: parent
ParticleSystem{
    id:petalParticleSystem
}
ImageParticle:{
        source:"image/Petal.png"
        system:petalParticleSystem
}

你为什么不用冒号

ParticleSystem{

但你们这儿有吗

ImageParticle:{
我想这就是错误信息的意思

ImageParticle:{