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

Flickable 'moving' parameter stays at true when setting contentY

XMLWordPrintable

    • 4dce1312fbb66c88a8cdef59dfdf2194db78d77f

      If a flickable is moving and you stop it by setting 'contentY' (or 'contentX'), the flickable stops moving, but the value of the 'moving' parameter remains at 'true'.

      Here's some test code to show this happening:

      import Qt 4.7

      Rectangle {
      width: 400
      height: 800

      ListView {
      id: myList
      y: 100
      width: 400
      height: 700
      model: 100
      delegate: Rectangle {
      width: 400
      height: 100
      color: 'red'
      border.color: 'yellow'
      border.width: 2
      Text

      { text: index anchors.centerIn: parent font.pixelSize: 20 color: 'yellow' }

      }
      }

      Rectangle {
      width: 400
      height: 100
      color: 'grey'
      Text

      { text: 'Click here to stop list' anchors.centerIn: parent font.pixelSize: 20 }

      MouseArea

      { anchors.fill: parent onClicked: myList.contentY = 0 }

      }

      Text

      { y : 200 text: 'myList.moving = ' + myList.moving font.pixelSize: 20 }

      }

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

            martjone Martin Jones (closed Nokia identity) (Inactive)
            clivewhitear Clive Whitear
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes