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

SwipeDelegate: animations gone missing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.7.2
    • 5.7.2
    • Quick: Controls 2
    • None
    • 838fd79152957f457a47cd30970961a27f086848

    Description

      Drag & release an item

      • Expected: the item animates to the open or close position
      • Actual: the position jumps without animation
      import QtQuick 2.5
      import QtQuick.Window 2.2
      import QtQuick.Controls 2.0
      
      Window {
          id: window
          width: 360
          height: 480
          visible: true
      
          ListView {
              model: 10
              anchors.fill: parent
              delegate: SwipeDelegate {
                  text: index
                  width: parent.width
      
                  swipe.behind: Rectangle {
                      color: "tomato"
                      width: parent.width
                      height: parent.height
                  }
              }
          }
      }
      

      The x-coordinate behaviors are only enabled when the delegate is not down/pressed. SwipeDelegate: don't emit clicked when released outside probably changed the pressed state and position change order, so now the behaviors no longer get executed on release.

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            jpnurmi J-P Nurmi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes