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

AnimatedImage is not played automatically (specific case)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.6.3, 6.7.0
    • None

      AnimatedImage is not played automatically if a binding on sourceSize property is set and reevaluated after component creation.

      Code sample:

      import QtQuick
      
      Window {
          width: 640
          height: 480
          visible: true
      
          AnimatedImage {
              anchors.fill: parent
              source: 'qrc:/untitled14/sample.gif'
              sourceSize: Qt.size(width / 2, height / 2)
          }
      }
      

      Steps to reproduce:
      1. Build and run sample project untitled14.zip
      2. Observe GIF animation

      Actual result: the GIF is not playing
      Expected result: the GIF is playing

        1. untitled14.zip
          940 kB
          Vladimir Belyavsky
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            studiosus Vladimir Belyavsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes