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

Touchpad: nested Flickables get stuck in pressed state on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.8.0, 5.9.0 Alpha, 5.15.2, 6.0.0, 6.7
    • None
    • macOS 10.12.2
    • macOS

    Description

      Observed behavior: If a user first does a touchpad multitouch swipe in a TextArea, and then clicks one of the tab buttons the SwipeView will not change. However, the tab bar button changes color to represent it's been clicked, and the currentIndex and currentItem are triggered and indeed do switch to the correct values. It seems like the view itself is not updated.

      This only works with a multitouch swipe, and the proper behavior can be reestablished by clicking anywhere outside the field.

      Expected behavior: when a tab button is clicked on, the swipe view changes.

      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")
      
          SwipeView {
              id: swipeView
              anchors.fill: parent
              currentIndex: tabBar.currentIndex
      
              Page {
                  Flickable {
                      height: 100
                      width: 300
      
                      TextArea.flickable: TextArea {
                          wrapMode: TextArea.Wrap
      
                          text:
                              "Lorem ipsum dolor sit amet, consectetur adipisicing elit, " +
                              "sed do eiusmod tempor incididunt ut labore et dolore magna " +
                              "aliqua. Ut enim ad minim veniam, quis nostrud exercitation " +
                              "ullamco laboris nisi ut aliquip ex ea commodo cosnsequat. ";
                      }
                  }
      
              }
      
              Page {
                  Label {
                      text: "Page 2"
                  }
              }
      
      
          }
      
          footer: TabBar {
              id: tabBar
              currentIndex: swipeView.currentIndex
              TabButton {
                  text: qsTr("First")
              }
              TabButton {
                  text: qsTr("Second")
              }
          }
      }
      
      

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              kubark42_ Kenz Dale
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes