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

AnimatedImage cannot resume animation if a single frame image is used

    XMLWordPrintable

Details

    • 705181e0f84e7867952fc00f46436a5dbd584b89

    Description

      For example, using a Timer to set images from a list:

      ...
      property int myvar: -1
      property var mylist: ["loading.gif","bg1.jpg", "loader.gif"]
      Timer { running: myvar < mylist.length-1; repeat: true; interval: 2000; onTriggered: { ++myvar; } }
      AnimatedImage { source: mylist[myvar]; ... }
      

      The AnimatedImage will animate the first .gif, show the second still image,
      then display the third as a still image.

      In this case, the best course of action would be to indicate this behaviour in the documentation, as it can be easily worked around with

      onStatusChanged: playing = (status == AnimatedImage.Ready);
      

      Attachments

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

        Activity

          People

            dajansen Damian Jansen (closed Nokia identity) (Inactive)
            dajansen Damian Jansen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes