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

TapHandler doesn't react to touch input inside popup background

    XMLWordPrintable

Details

    Description

      Consider the following code

      import QtQuick 2.12
      import QtQuick.Controls 2.5
      
      Item {
          Popup {
              visible: true
              width: 500
              height: 500
              background: Rectangle {
                  color: "red"
                  TapHandler {
                      onTapped: console.warn("tapped")
                  }
              }
          }
      } 

      When clicking the red area with the mouse "tapped" is printed as expected. However when tapping it using a touchscreen it doesn't react.

      When moving the rectangle from background to a regular child touch works as expected.

      Touch works as expected in 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