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

QQuickWidget: button in a popup doesn't receive touch end event

    XMLWordPrintable

Details

    • 26cd43f02 (dev), 23ce8a110 (6.5), ff1953617 (6.4), dc8f44b14 (dev), 7eee2ffec (6.4), 93f99ba81 (6.5), a21b91c99 (tqtc/lts-6.2), b9565b3af (tqtc/lts-6.2)

    Description

      In a simple test project where a QQuickWidget is used to display an item containing a Popup and a Button in the Popup, the button will receive touch begin but never a touch end event. Clicking with a mouse works fine (press & release received).

      The problem does not seem to occur in 5.15.8 at all.

       

      import QtQuick 2.15
      import QtQuick.Controls 2.15
      
      Item {
          width: 640
          height: 480
          visible: true
      
          Popup {
              closePolicy: Popup.NoAutoClose
              visible: true
              width: 640
              height: 480
      
              Button {
                  text: "TAP ME"
                  anchors.fill: parent
      
                  onPressed:
                  {
                      console.log( "Button onPressed") ;
                  }
      
                  onReleased:
                  {
                      console.log( "Button onReleased") ;
                  }
      
                  onClicked:
                  {
                      console.log( "Button onClicked") ;
                  }
              }
          }
      }
      
      

       

      Steps to reproduce the problem:

      1. Run the attached example
      2. Tap on the button

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-101736
          # Subject Branch Project Status CR V

          Activity

            People

              vhilshei Volker Hilsheimer
              miikapernu Miika Pernu
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: