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

[REG 5.15->6.10] TapHandler doesn't work inside ListView with gesturePolicy: TapHandler.WithinBounds

XMLWordPrintable

      Consider the following code

      import QtQuick 2.15
      
      ListView {
          model: 10
          delegate: Text {
              text: "This is a text" 
      
              TapHandler {
                  gesturePolicy: TapHandler.WithinBounds // Remove this to make it work
                  onTapped: console.warn("tapped")
              }
          }
      } 

      When clicking on the text the message isn't printed. Only when removing the gesturePolicy it works.

      This works as expected with Qt 5.15

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            nicolasfella Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes