Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. ItemParticle size

ItemParticle size

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 511 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MartinD
    wrote on last edited by
    #1

    I can emit ItemParticle with the code below. However, I can't figure out a way how to affect ItemParticle size with size and endSize property of Emitter. ItemParticle has always 5 pixel size.

    ParticleSystem {
        id: particleSystem
    }
    
    Emitter {
        id: collisionEmiter
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.verticalCenter: parent.verticalCenter
        width: parent.width / 2
        height: 1
        system: particleSystem
        emitRate: 300
        lifeSpan: 400
        lifeSpanVariation: 200
        size: 150
        endSize: 32
        enabled: true
        velocity: AngleDirection { angle: 10; angleVariation: 8; magnitude: 150; magnitudeVariation: 10 }
    
        ItemParticle {
            system: particleSystem
            delegate: Component {
                Rectangle {
                    width: 5
                    height: 5
                    color: 'red'
                }
            }
        }
    }
    
    1 Reply Last reply
    0
    • JanardhanJ Offline
      JanardhanJ Offline
      Janardhan
      wrote on last edited by
      #2

      I am also facing the same problem, please let me know if you got any solution for this.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved