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

Details

    Description

      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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes