Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-58642

SpriteSequence doc needs a simple code example

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 6.9
    • Quick: Particles
    • None

    Description

      The most basic example that I could come up with was this:

      SpriteSequence {
          width: 32
          height: 32
          interpolate: false
      
          Sprite {
              source: "spritesheet.png"
              frameDuration: 800
              frameWidth: 32
              frameHeight: 32
              frameCount: 4
          }
      }
      

      However, it's probably better to have an example with two sprites, since the point of it is to transition between sprites. http://doc.qt.io/qt-5/qtquick-imageelements-example.html#spritesequence has an example, but I don't see the images it uses anywhere, which have to be displayed alongside the example so that people can actually test it out.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes