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

StackView block touch release event

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.8.0
    • 5.7.1
    • Quick: Controls 2
    • None

    Description

      When you touch a mouse area, or a button (derived from AbstractButton) when the stack is busy, the touch system is broken.

      When the stack will not be busy anymore, the next Item will receive a press event but no release event.

      There are no issue with the mouse, but the issue append on any touch device (iOS, Android, Windows).

      The following code illustrate the issue:
      If you touch the green area to push a new view, and if you touch it again when the stack is busy: in the next view, the yellow area will only receive a press event if you touch it

      import QtQuick 2.7
      import QtQuick.Controls 2.0
      import QtQuick.Layouts 1.0
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Component {
              id: baseView
      
              Rectangle {
                  id: rect
      
                  color: 'grey'
      
                  MouseArea {
                      anchors.fill: parent
      
                      Rectangle {
                          anchors.fill: parent
                          anchors.margins: 50
                          color: parent.pressed ? 'yellow' : 'green'
                      }
      
                      onClicked: stack.push(baseView)
                  }
              }
          }
      
          StackView {
              id: stack
              anchors.fill: parent
      
              initialItem: baseView
          }
      
          Text {
              text: stack.busy ? 'busy' : ''
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              benoitgradit BenoƮt Gradit
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes