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

Touch handling broken with Flickable on BB10

    XMLWordPrintable

Details

    Description

      If you have a Flickable with element inside that each have a MouseArea, then flicking does not work anymore. It looks like the children are stealing the touch events from the Flickable.

      This issues does not happen on desktop, but on BB10 DevAlpha with Beta-4 software. Qt for BB10 was compiled as described in qt-project wiki.

      Here is full working snipped to demonstrate the issue.

      import QtQuick 2.0
      
      Rectangle {
          width: 768
          height: 1280
      
          Flickable {
              clip: true
              contentHeight: column.height
              anchors.fill: parent
      
              Column {
                  id: column
                  anchors.left: parent.left
                  anchors.right: parent.right
      
                  Repeater {
                      model: 100
      
                      Rectangle {
                          height: 100
                          color: mouse.pressed ? "lightblue" : "gray"
                          border.color: "white"
                          border.width: 5
                          anchors.left: parent.left
                          anchors.right: parent.right
      
                          MouseArea {
                              id: mouse
                              anchors.fill: parent
                          }
                      }
                  }
              }
          }
      }
      

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            conny Cornelius Hald
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes