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

SwipeDelegate: animations gone missing

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.7.2
    • Fix Version/s: 5.7.2
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Commits:
      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

            • Assignee:
              mitch_curtis Mitch Curtis
              Reporter:
              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