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. Error: Tracer is not a type in Quick.Particles(solved)

Error: Tracer is not a type in Quick.Particles(solved)

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.5k Views
  • 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.
  • H Offline
    H Offline
    houmingc
    wrote on last edited by
    #1

    Following the link below and i got compile error: Tracer is not a type

    http://qmlbook.org/ch08/index.html

    @

    import QtQuick 2.0
    import QtQuick.Particles 2.0

    Rectangle {
    id: root
    width: 480; height: 160
    color: "#1f1f1f"

    ParticleSystem {
        id: particleSystem
    }
    
    Emitter {
        id: emitter
        anchors.centerIn: parent
        width: 160; height: 80
        system: particleSystem
        emitRate: 10
        lifeSpan: 1000
        lifeSpanVariation: 500
        size: 16
        endSize: 32
        Tracer { color: 'green' }            //Tracer is not a type
    }
    
    ImageParticle {
        source: "assets/particle.png"
        system: particleSystem
    }
    

    }

    @

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Indeed, this type is no part of Qt. I suspect it is a custom element created for the purpose of that book - to show the parent item (notice the green rectangle in the picture).

      Please search the book for more information about it. Most probably it is something simple like:
      @
      // Tracer.qml
      Rectangle {
      anchors.fill: parent
      }
      @

      (Z(:^

      1 Reply Last reply
      1

      • Login

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